从公司名称获取股票代码 [英] Getting stock symbol from company name
问题描述
我有一个公司名称,我想获取该公司的股票代码以及与其相关的所有信息.我曾尝试使用雅虎回调 股票代码查找 API 但由于某种原因它返回http 400 错误请求.有人可以告诉我如何获取该股票的代码,以便我可以查询雅虎并获取所有数据.也可以只用这个公司名称来获取所有股票相关数据.
I have a company name and i want to get the stock symbol of that company and all the information related to it. I have tried using yahoo call back Stock ticker symbol lookup API but for some reason it returns a http 400 bad request. Could someone please tell me how i would go about getting the symbol for that stock so that i can query yahoo and get all the data. Also is it possible to just use this company name to get all the stock related data.
我发送的请求-"http://d.yimg.com/autoc.finance.yahoo.com/autoc?"+symbol+"=yahoo&callback=YAHOO.Finance.SymbolSuggest.ssCallback"代码> where symbol=Thomas Scott
request i sent-"http://d.yimg.com/autoc.finance.yahoo.com/autoc?"+symbol+"=yahoo&callback=YAHOO.Finance.SymbolSuggest.ssCallback"
where symbol=Thomas Scott
推荐答案
您的查询格式不正确.试试:
Your query is malformed. Try:
http://d.yimg.com/autoc.finance.yahoo.com/autoc?query=Thomas%20Scott&callback=YAHOO.Finance.SymbolSuggest.ssCallback
这篇关于从公司名称获取股票代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!