www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > Other

    Other Discussion and technical support for any other scripting methods.

    Reply
     
    Thread Tools Rate Thread Display Modes
      #1  
    Old 09-15-2005, 11:03 PM
    schizo schizo is offline
    Code Monkey
     
    Join Date: Jun 2004
    Posts: 391
    Stock Quotes - RSS Feed

    Anyone know where I can find a free RSS/XML feed of stock quotes?
    Reply With Quote
      #2  
    Old 03-01-2006, 02:52 AM
    RossC0 RossC0 is offline
    Registered User
     
    Join Date: Dec 2004
    Posts: 89
    You ever find a good source ?
    Reply With Quote
      #3  
    Old 03-06-2006, 11:01 AM
    schizo schizo is offline
    Code Monkey
     
    Join Date: Jun 2004
    Posts: 391
    Well as it turned out, I never found an XML feed. However I noticed Yahoo provided downloadable data in CSV format for each stock. For instance, go to http://finance.yahoo.com/q?s=%5EDJI and click on the "Download Data" link about midway down on the right. This pulls up a dynamic CSV based on the querystring value of the stock symbol.

    So I essentially created my own XML feed by reading that CSV output on the fly, then parsing it, and converting it to XML. I then had a Flash application that would read in data from that XML output and display current stock data from the Dow, Nasdaq, and S&P. The final result may be found here http://www.zarfunds.com

    I hope this helps.
    Reply With Quote
      #4  
    Old 03-23-2006, 03:41 PM
    phred_dog28 phred_dog28 is offline
    Registered User
     
    Join Date: Mar 2006
    Posts: 1
    Try this... It uses Yahoo! Finance to get the quotes.
    Example:
    http://xanadb.com/ticker/^dji+MSFT+GOOG+YHOO
    Reply With Quote
      #5  
    Old 01-24-2008, 02:08 PM
    xtradernet xtradernet is offline
    Registered User
     
    Join Date: Jan 2008
    Posts: 1
    Wink Stock quotes

    Two ways:
    You can use a PPM package Yahoo:Finance and pull historical or current quotes as well as using a package to get a ticker list by market. Or you can extract from a CSV download using Yahoo's url to down load historical prices. Look at the two links below. I was having some difficulty with the code sample written in php. It may be some small issue I have with knowing PHP.
    Basically the program uses the url to open a CSV file with the stock data then extracts the file contents via PHP

    http://www.gummy-stuff.org/Yahoo-data.htm
    http://programmabilities.com/php/?id=24
    Reply With Quote
      #6  
    Old 04-23-2008, 12:29 AM
    jaminbeatty jaminbeatty is offline
    Registered User
     
    Join Date: Apr 2008
    Posts: 2
    how to display stock indices w/o using fopen() ?

    Quote:
    Originally Posted by schizo
    So I essentially created my own XML feed by reading that CSV output on the fly, then parsing it, and converting it to XML. I then had a Flash application that would read in data from that XML output and display current stock data from the Dow, Nasdaq, and S&P. The final result may be found here http://www.zarfunds.com

    I hope this helps.
    I would love to hear more on how you accomplished this. I'm not really familiar with creating XML feeds. I've been searching for some kind of script to use that would just display the stock indices; DJIA, S&P 500, NASDAQ just like on the zarfunds.com site mentioned above. Everything I've come across requires fopen, which is disabled by my host. Switching hosts isn't an option, so I think what I'm looking for is something that uses curl instead of fopen.

    If anyone has a simple solution that would be great!
    Reply With Quote
      #7  
    Old 07-16-2009, 01:11 PM
    jfleming jfleming is offline
    Registered User
     
    Join Date: Jul 2009
    Posts: 1
    Tokyo Stock Exchange

    I have a question in line with this topic. I'm using the Yahoo Finance data download functionality through a web part, just as described in this thread. However, I want to be able to get quotes for stocks on the Tokyo Stock Exchange. However, it doesn't seem as though Yahoo Finance supports quotes for stocks on this exchange.

    Does anyone know if Yahoo Finance does support this, or is there a different free feed that could be used for this? Thanks.

    John
    Reply With Quote
      #8  
    Old 09-24-2009, 09:55 AM
    rynato rynato is offline
    Registered User
     
    Join Date: Sep 2009
    Posts: 2
    if anyone is still reading this thread

    OK I developed a widget to track the DJIA (^DJI). It uses Yahoo Finance's free data.

    I have one script which is run by a crontab, it grabs the DJIA quotes every 20 minutes while markets are open. This script runs fine. It retrieves the .csv file, parses it, and stores the relevant data in a mySQL database table.

    A second script gets the final data for the day by using the same URL:

    http://finance.yahoo.com/d/quotes.csv?s=^DJI&f=l1d1t1oghv

    and running it sometime after market close in New York and before market open on the next trading day.

    This does not return accurate data after end-of-day for the high, low and volume. They are always off. High and low are off by roughly 20 to 40 points, while volume is always WAY off. The open and close are correct, which is good... but the other three data are not correct if you compare it to the historical data for that day.

    I have tried running this script at 9am ET on the day following the trading day (about as late as you can poll current data and still get yesterday's data). It is the same as if the script were run an hour after market close.

    I tried getting the historical data instead:

    http://ichart.finance.yahoo.com/table.csv?s=^DJI&a=[start month]&b=[start date]&c=[start year]&d=[end month]&e=[end date]&f=[end year]&g=d&ignore=.csv

    I discovered that you cannot retrieve historical data in this way, for any date more recent than one month back - it returns an empty document or no document at all. You can look up the information 'manually' in the browser, but it seems it won't let you directly access that data with a script.

    Has anyone found a workaround for this? Or perhaps I'm doing something wrong?

    Thanks in advance.
    Reply With Quote
      #9  
    Old 12-28-2009, 02:26 AM
    Bernardcraig20 Bernardcraig20 is offline
    Registered User
     
    Join Date: Dec 2009
    Posts: 1
    Thanks for sharing this uP!

    _________________
    Gold Ira
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 01:08 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.