Alternative to google finance api

I wanted to use Google Finance API to get stock data about the company but this API is deprecated since 2011/26/05.

What do you use as free API to get stock data in real time?


Updating answer a bit

1. Try Alpha Vantage API

For beginners you can try to get a JSON output from query such as

https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&apikey=demo

DONT Try Yahoo Finance API (it is DEPRICATED or UNAVAILABLE NOW).

  • Here is a link to previous Yahoo Finance API discussion on StackOverflow.
  • Here's an alternate link to Yahoo Finance API posted on Google Code.
  • For beginners, you can generate a CSV with a simple API call:

    http://finance.yahoo.com/d/quotes.csv?s=AAPL+GOOG+MSFT&f=sb2b3jk
    

    (This will generate and save a CSV for AAPL, GOOG and MSFT)

    Note that you must append the format to the query string ( f=.. ). For an overview of all of the formats see this page.

    For more examples, visit this page.

    For XML and JSON -based data, you can do the following:

    Don't use YQL (Yahoo Query Language)**

    For example:

    http://developer.yahoo.com/yql/console/?q=select%20*%20from%20yahoo.finance
    .quotes%20where%20symbol%20in%20(%22YHOO%22%2C%22AAPL%22%2C%22GOOG%22%2C%22
    MSFT%22)%0A%09%09&env=http%3A%2F%2Fdatatables.org%2Falltables.env
    

    2. Use the webservice

    For example, to get all stock quotes in XML :

    http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote
    

    To get all stock quotes in JSON , just add format=JSON to the end of the URL:

    http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json
    

    Alternatives:

    1. 1Forge Financial APIs

  • Real-time rates for about 40 currency pairs are available here.
  • 2. Financial Content API

  • The documentation for this API is very good.
  • 3. Open Exchange Rates

    4. Oanda API

    5. XE API

    6. Xignite API

    7. currencylayer API

    8. Other API discussed at programmableWeb


    I'm way late, but check out Quandl. They have an API for stock prices and fundamentals.

    Here's an example call, using Quandl-api download in csv

    example:

    https://www.quandl.com/api/v1/datasets/WIKI/AAPL.csv?column=4&sort_order=asc&collapse=quarterly&trim_start=2012-01-01&trim_end=2013-12-31
    

    They support these languages. Their source data comes from Yahoo Finance, Google Finance, NSE, BSE, FSE, HKEX, LSE, SSE, TSE and more (see here).


    I'd suggest using TradeKing's developer API. It is very good and free to use. All that is required is that you have an account with them and to my knowledge you don't have to carry a balance ... only to be registered.

    链接地址: http://www.djcxy.com/p/35780.html

    上一篇: 是否有免费的API来生成Google兼容的站点地图?

    下一篇: 替代谷歌金融API