获取特定指数的完整股票列表

发布于 2024-11-07 04:36:46 字数 117 浏览 0 评论 0原文

只是想知道那里有什么样的免费金融 API。我正在寻找可以指定索引并获取该索引中包含的所有公司(按股票代码)的列表。

目前我只对纽约证券交易所上市公司的股票感兴趣。我非常感谢任何有关 API 或方法的建议。

Just wondering what kind of free finance API's are out there. I'm looking for something where I can specify the index and get a list of all the companies, by ticker symbol, that are included in that index.

Currently I'm only interested in NYSE-listed company stocks. I'd really appreciate any suggestions on API's or methods.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

末蓝 2024-11-14 04:36:46

我刚刚发现这项服务。您可以下载热门交易所的完整列表。

http://www.eoddata.com/symbols.aspx

您必须注册(免费计划)才能下载。

感谢您提供链接 driis,但我不确定您能否获得完整的列表。我之前看过它,它似乎只是用于管理您的 Google 财经投资组合。

I just came across this service. You can download complete listings for the popular exchanges.

http://www.eoddata.com/symbols.aspx

You must register (free plan) to download.

Thanks for the link driis but i'm not sure you can get complete listings. I looked at that before and it seems that it is just for managing your Google Finance portfolio.

甜`诱少女 2024-11-14 04:36:46

除了进行艰苦的工作(例如从纳斯达克下载各个交易所的符号)之外,还有一种方法可以让 Google Finance 显示在交易所上市的所有股票和/或公司。以下是获取纳斯达克公司列表的示例网址:

https://www.google.com/finance?start=0&num=3000&q=%5B(交易所%20%3D%3D%20%22NASDAQ%22)%20%26%20 (last_price%20%3E%200.1)%20%26%20(last_price%20%3C%201500)%5D&restype=company&noIL=1

如果您注意到网址中包含“NASDAQ”一词,您可以将其更改为您想要的交换。此外,可以将 num 参数更改为允许在单个视图中显示所有符号的数量。最后,显示的last_price(也用于标准)的上限为1500 - 也可能需要更改。按原样运行一次,如果视图分页并且您希望在单个视图中显示所有内容,则相应地增加该数字。

当您使用此 URL 时,您可能会发现另一个好处。能够从 Google 财经检索股票列表,将其作为搜索条件声明。我个人只发现了一些可能的字段名,谷歌不会在我发现的任何地方发布它们。然而,一旦您使用标准来构建列表,将页面合并到一个视图中就是一件简单的事情。

Other than doing the hard work, like downloading the symbols for the various exchanges from NASDAQ, then is a way to get Google Finance to display all of the stocks and/or companies listed on an exchange. Here is a sample url for obtaining the list of companies on NASDAQ:

https://www.google.com/finance?start=0&num=3000&q=%5B(exchange%20%3D%3D%20%22NASDAQ%22)%20%26%20(last_price%20%3E%200.1)%20%26%20(last_price%20%3C%201500)%5D&restype=company&noIL=1

if you notice the word 'NASDAQ' in the url, you can change that for the exchange you want. In addition, the num parameter can be changed to an amount that allows displaying all of the symbols to a single view. Finally, the last_price shown (which is also used for the criteria) has an upper limit of 1500 - that may need to be changed as well. Run it once as is, and if the view paginates and you want to display all in a single view, then increase that number accordingly.

When you use this URL, you may discover another benefit. The ability to retrieve a list of stocks from Google Finance simply as a search criteria statement. I personally have only uncovered a few of the possible fieldnames, and Google does NOT publish them anywhere that I have found. However, once you use the criteria to build the list, it is a simple matter to consolidate the pages into one view.

神回复 2024-11-14 04:36:46

我认为 Google Finance API 是最好的免费 API。

Google Finance API, i think, is the best free one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文