股票代码自动完成 API
我正在寻找一些股票代码查找 API。我可以使用符号 & 查询雅虎财经能够检索股票价格和其他细节。
我正在寻找一些自动完成股票查找 API,例如如果我查询“Go*”...我如何获取以 GO* = Goog 等开头的所有股票代码...是否有通配符股票代码的 APi搜索
任何帮助都会很棒..
谢谢
I am looking for some stock symbol look-up API. I could able to query yahoo finance with a symbol & could able to retrieve the stock price & other details.
I am looking for some auto-complete stock look-up API like if i query fo "Go*" ... how can i get all stock symbols starting with GO* = Goog etc ... is there any APi for wildcard stock symbol searches
Any help would be great ..
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这里有一个简单的问题和一个更复杂的问题。
如果您的符号列表是静态的,那么您可以对本地维护的文件使用任何典型的自动完成 API。
然而,符号列表很少是静态的。由于各种金融市场情况(IPO、收购、合并、更名、破产等),符号不断被添加或删除和更改。许多代码也在特定交易所进行交易,并且一些代码是交叉列出的。还有一些金融工具不仅仅是股票,例如指数、商品等。其总称是“工具定义”,此类定义的完整列表是由路透社或彭博等公司提供的服务。
我不熟悉您可以免费获得的任何免费和开放的仪器列表,并且您需要确保您遵守允许您获得最新服务的服务许可证。
列表。
如果您可以容忍一个工作日的延迟,您也许可以从各种提供美国所有股票收盘后上市的来源中获取该列表。 《华尔街日报》有一份印刷版列表(也可能是电子版)。 Eoddata 提供了这样的列表等。但请确保您遵守他们的条款。
There's a simple problem here and a more complex problem.
If your list of symbols is static, then you could use any typical autocomplete API against a file that you maintain locally.
However, the list of symbols is rarely static. Symbols are constantly being added or erased and changed due to a variety of financial market situations (IPO, acquisitions, mergers, renames, bankrupcies, etc.). Many symbols are also traded on specific exchanges, and some symbols are cross listed. There are also financial instruments that are not simply stocks, such as indices, commodities, etc. The general term for this is "instruments definitions" and a complete list of such definitions is a service provided by companies such as Reuters or Bloomberg.
I am not familiar with any free and open instrument lists that you could get for free, and you need to make sure that you are complying with the licenses of services that allow you to get a current
list.
If you can tolerate a delay of one business day, you might be able to scrape the list from a variety of sources that provide close-of-business listings for all stocks in the US. The WSJ has a printed list (likely also an electronic one). Eoddata provides such a list, etc. But make sure that you are complying with their terms.
雅虎有一个API:
http://d.yimg.com/autoc.finance.yahoo.com/autoc?query=GOO&callback=YAHOO.Finance.SymbolSuggest.ssCallback
yahoo has an api for this:
http://d.yimg.com/autoc.finance.yahoo.com/autoc?query=GOO&callback=YAHOO.Finance.SymbolSuggest.ssCallback
如果您将代码作为源放入,任何自动完成 API 或工具包都应该可以工作。您可能必须自己主持,因为我不知道有任何公共的。
Any autocomplete API or toolkit should work if you put the tickers in as a source. You will probably have to host it yourself as I don't know of any public ones.
您可以在此处尝试使用公司基础 API 中的“公司搜索”操作:http://www.mergent。 com/servius/
You can try using the "Company Search" operation in the Company Fundamentals API here: http://www.mergent.com/servius/