views:

1754

answers:

8

What is the most recommended free/public API for accessing financial market stats and stock quotes (preferrably real-time quotes)? I'm not too picky about how it's exposed (SOAP, REST, some proprietary XML setup, etc.), as long as it's got some decent documentation.

I'm planning to build a simple web dashboard in PHP with some basic data (basically a quick-n-dirty homepage), but may want to grow it into a full blown web app eventually. Any thoughts?

As I find some, I'll post a list here (feel free to comment if you've used any of them before):

Free

Not Free

+2  A: 

I've heard that http://www.opentick.com/ is good, but they're not accepting new users at this time.

Ben Alpert
they've been "upgrading servers, so we can't take new registrations" for years now, so don't hold your hands too long
Jimmy
There closed for good now, although they claim there coming back at some future point with a new site.
Jared
+4  A: 

Yahoo's api provides a CSV dump:

Example: http://finance.yahoo.com/d/quotes.csv?s=msft&f=price

I'm not sure if it is documented or not, but this code sample should showcase all of the features (namely the stat types [parameter f in the query string]. I'm sure you can find documentation (official or not) if you search for it.

http://www.goldb.org/ystockquote.html

Edit

I found some unofficial documentation:

http://ilmusaham.wordpress.com/tag/stock-yahoo-data/

Giovanni Galbo
A: 

Consider this similar question and its answers.

kenny
Looks like you linked to this very question - typo maybe?
Wilco
oops, thanks Wilco. I'll fix it since I've seen this and similar several times.
kenny
A: 

Last I looked -- a couple of years ago -- there wasn't an easy option and the "solution" (which I did not agree with) was screen-scraping a number of websites. It may be easier now but I would still be surprised to see something, well, useful.

The problem here is that the data is immensely valuable (and very expensive), so while defining a method of retrieving it would be easy, getting the trading venues to part with their data would be next to impossible. Some of the MTFs (currently) provide their data for free but I'm not sure how you would get it without paying someone else, like Reuters, for it.

Stephen Darlington
A: 

Some of the brokerage firms like TDAmeritrade have APIs you can use to get streaming data from their servers:

http://www.tdameritrade.com/tradingtools/partnertools/api%5Fdev.html

A: 

I found the links and tips under this question to be helpful.

JohnB
A: 

I usually find that Programmable Web is a good place to go when looking for APIs.

VirtuosiMedia
A: 

Here's an API that provides financial data on publicly traded companies, including historical stock quotes, dividends, company fundamentals, executives, etc: http://www.mergent.com/servius/

Eugene Osovetsky