我需要一个包含美国市场上所有股票代码的 SQL 数据库。有人吗?
差不多就是这样了。我需要一个 .sql 文件,其中所有股票代码和公司名称都与我正在编写的自动完成函数相匹配。有人吗?
That is pretty much it. I need a .sql file with all the stock symbols and company names matched up for an autocomplete function I'm writing. ANYONE?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
好吧,我不知道可下载的 .sql 文件,但您可以使用许多免费和付费的 API 来获取数据以导入到数据库中。查看类似的问题以了解一些选项:股票代码查找 API
我想我会走这条路,也许可以运行一个后台进程,时不时地从 API 进行更新,以便您始终拥有最新的所有符号。
Well i dont know about a downloadable .sql file but there are numerous free and paid API's you could use to get the data for import into your db. Check out this similar questions for some options: Stock ticker symbol lookup API
I think i would go this route and maybe run a background process that does an update from the API every now and then so that you always have all the symbols up to date.
http://www.nasdaq.com/screening/company-list.aspx 。此页面包含纳斯达克、美国证券交易所和纽约证券交易所的公司列表。然后,您可以读取 CSV 数据并将其存储为 sql。
http://www.nasdaq.com/screening/company-list.aspx. This page contains company list from NASDAQ, AMEX and NYSE. You can then read in CSV data and store it as sql.
我使用 python 包pytickersymbols。该软件包提供了带有谷歌和雅虎符号等元数据的离线股票集合。
在存储库中,您还可以找到一个 YAML 文件,该文件可能对创建 SQL 文件有用。
I use the python package pytickersymbols. The package offers an offline collection of stocks with metadata like google and yahoo symbols.
In the repository, you can also find a YAML file which is maybe useful for a SQL file creation.
查看公司基础 API http://www.mergent.com/servius - 应该是从那里提取列表非常容易。
Take a look at the Company Fundamentals API at http://www.mergent.com/servius - should be pretty easy to extract the list from there.