Best/Most Comprehensive API for Stocks/Financial Data

Web ServicesApiRestSoapFinance

Web Services Problem Overview


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

Web Services Solutions


Solution 1 - Web Services

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/

Solution 2 - Web Services

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

Solution 3 - Web Services

Markit On Demand provides a set of free financial APIs for playing around with. Looks like there is a stock quote API, a stock ticker/company search and a charting API available. Look at http://dev.markitondemand.com

Solution 4 - Web Services

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.

Solution 5 - Web Services

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

Solution 6 - Web Services

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_dev.html

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionWilcoView Question on Stackoverflow
Solution 1 - Web ServicesGiovanni GalboView Answer on Stackoverflow
Solution 2 - Web ServicesVirtuosiMediaView Answer on Stackoverflow
Solution 3 - Web ServicesMarkView Answer on Stackoverflow
Solution 4 - Web ServicesStephen DarlingtonView Answer on Stackoverflow
Solution 5 - Web ServicesJohnBView Answer on Stackoverflow
Solution 6 - Web ServicesView Answer on Stackoverflow