Yahoo Finance API stock/ticker lookup only allowing exact match

前端 未结 3 857
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-29 10:47

Until yesterday a query such as this http://autoc.finance.yahoo.com/autoc?query=a&callback=YAHOO.Finance.SymbolSuggest.ssCallback yielded a long list of fuzzy/broadmatch

相关标签:
3条回答
  • 2020-12-29 11:10

    The URL has now changed to this: http://d.yimg.com/aq/autoc?query=y&region=US&lang=en-US&callback=YAHOO.util.ScriptNodeDataSource.callbacks

    0 讨论(0)
  • 2020-12-29 11:16

    Shameless Plug

    When I was building an app that required stock symbol/company lookup, I tried a few options, and none were very good. I took what I built, and made it public: https://www.stocksearchapi.com

    UPDATE I took this offline due to lack of interest

    0 讨论(0)
  • 2020-12-29 11:27

    The following works (the returned data stream has lots of escape characters):

    http://autoc.finance.yahoo.com/autoc?query=alphabet&region=EU&lang=en-GB
    

    Or expanded in the YQL Console:

    https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D'http%3A%2F%2Fautoc.finance.yahoo.com%2Fautoc%3Fquery%3Dalphabet%26region%3DEU%26lang%3Den-GB'&format=json&callback=
    
    0 讨论(0)
提交回复
热议问题