|
|||||||
| Other Discussion and technical support for any other scripting methods. |
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Stock Quotes - RSS Feed
Anyone know where I can find a free RSS/XML feed of stock quotes?
|
|
#2
|
|||
|
|||
|
You ever find a good source ?
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Try this... It uses Yahoo! Finance to get the quotes.
Example: http://xanadb.com/ticker/^dji+MSFT+GOOG+YHOO |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
how to display stock indices w/o using fopen() ?
Quote:
If anyone has a simple solution that would be great! |
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
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. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|