有什么好的金融API吗?

发布于 2024-09-18 09:52:29 字数 1536 浏览 4 评论 0原文

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

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

发布评论

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

评论(7

帅气尐潴 2024-09-25 09:52:29

雅虎通过 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

余厌 2024-09-25 09:52:29

您还可以使用 YahooAPI 并发送返回 XML 文档的 YQL 查询,例如:

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20%28%22GLD,SLV%22%29&env=store://datatables.org/alltableswithkeys

为了让事情变得更容易,我编写了一个简单的 YahooFinanceAPI 脚本。用法示例:

$y = new YahooFinanceAPI;
$y->api(array('SLV','GLD'));

有关更完整的信息,您可以查看我在 http://thesimplesynthesis.com/article 撰写的文章/finance-apis/

You can also use YahooAPIs and send a YQL query that returns an XML document, such as:

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20%28%22GLD,SLV%22%29&env=store://datatables.org/alltableswithkeys

To make things easier, I wrote a simple YahooFinanceAPI script on GitHub. Example usage:

$y = new YahooFinanceAPI;
$y->api(array('SLV','GLD'));

For more complete information you can view an article I wrote at http://thesimplesynthesis.com/article/finance-apis/.

热风软妹 2024-09-25 09:52:29

Nordnet 外部 API 看起来不错:

  • 不错的文档,尽管更多示例/样板代码会更好。
  • 支持论坛一些活动。
  • 您可以玩耍的开发环境。

在将您的应用程序用于实际交易之前,需要经过一个认证流程来确保您的代码有效。
该 API 用于构建交易机器人,而不是用于下载价格历史记录。

Nordnet External API looks good:

  • Nice documentation although more sample/boilerplate code would be good.
  • Support forum with some activity.
  • Development environment where you can play around.

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.

提笔书几行 2024-09-25 09:52:29

是否您使用了错误的平均值符号?例如,道琼斯工业平均指数的代码是 .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.

于我来说 2024-09-25 09:52:29

查看盈透证券 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

久伴你 2024-09-25 09:52:29

看看 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)

北城孤痞 2024-09-25 09:52:29

@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

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