Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
雅虎通过 http 提供免费的 API。您可以获得实时信息& csv 格式的历史数据。
例如获取 S&P 历史数据 (^GSPC):
http://ichart.finance.yahoo.com/table .csv?s=^GSPC&ignore=.csv
或道琼斯 (^DJI):
http://ichart.finance.yahoo.com/table .csv?s=^DJI&ignore=.csv
URL 语法解释位于:
http://www.gummy-stuff.org/Yahoo-data.htm
Yahoo provides a free API via http. You can get real-time informations & historical data in csv format.
For example to get the S&P historical data (^GSPC):
http://ichart.finance.yahoo.com/table.csv?s=^GSPC&ignore=.csv
or Dow Jones (^DJI):
http://ichart.finance.yahoo.com/table.csv?s=^DJI&ignore=.csv
URL syntax explained at:
http://www.gummy-stuff.org/Yahoo-data.htm
您还可以使用 YahooAPI 并发送返回 XML 文档的 YQL 查询,例如:
为了让事情变得更容易,我编写了一个简单的 YahooFinanceAPI 脚本。用法示例:
有关更完整的信息,您可以查看我在 http://thesimplesynthesis.com/article 撰写的文章/finance-apis/。
You can also use YahooAPIs and send a YQL query that returns an XML document, such as:
To make things easier, I wrote a simple YahooFinanceAPI script on GitHub. Example usage:
For more complete information you can view an article I wrote at http://thesimplesynthesis.com/article/finance-apis/.
Nordnet 外部 API 看起来不错:
在将您的应用程序用于实际交易之前,需要经过一个认证流程来确保您的代码有效。
该 API 用于构建交易机器人,而不是用于下载价格历史记录。
Nordnet External API looks good:
Before you can use your application for actual trades there is a certification process to ensure that your code works.
The API is for building trading bots and not for downloading price histories though.
是否您使用了错误的平均值符号?例如,道琼斯工业平均指数的代码是 .DJI -在我寻找它的时候给我带来了一些困惑。 S&P 500 的代码是 .INX,这更加违反直觉。
Could it be that you're using the wrong symbols for the averages? For example, the symbol for the Dow Jones Industrial Average is .DJI - something that caused me a bit of confusion when I was searching for it. The symbol for the S&P 500 is .INX, which is even more counterintuitive.
查看盈透证券 API。除许多其他功能外,它还可以通过 API 提供延迟和实时报价。
http://www.interactivebrokers.com/en/p.php?f=程序接口
Take a look at the Interactive Brokers API. Among many other features, it has delayed and real time quotes available via the API.
http://www.interactivebrokers.com/en/p.php?f=programInterface
看看 http://www.mergent.com/servius (没有股票报价,但有很多其他财务信息,如股息、公司行为和财务报表)
Take a look at http://www.mergent.com/servius (no stock quotes, but lots of other financial information like dividends, corporate actions and financial statements)
@Brian:在撰写本文时,延迟报价无法通过 IB API 获得。只有实时报价 - 而且这些都不是免费的。
请参阅http://ibkb.interactivebrokers.com/taxonomy/term/147
@Brian: The delayed quotes are NOT available through the IB API at the time of writing. Only the real time quotes - and those are not free.
See http://ibkb.interactivebrokers.com/taxonomy/term/147