适用于股票/金融数据的最佳/最全面的 API [英] Best/Most Comprehensive API for Stocks/Financial Data

查看:35
本文介绍了适用于股票/金融数据的最佳/最全面的 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最推荐用于访问金融市场统计数据和股票报价(最好是实时报价)的免费/公共 API 是什么?我对它的公开方式并不太挑剔(SOAP、REST、一些专有的 XML 设置等),只要它有一些不错的文档.

What is the most recommended free/public API for accessing financial market stats and stock quotes (preferrably real-time quotes)? I'm not too picky about how it's exposed (SOAP, REST, some proprietary XML setup, etc.), as long as it's got some decent documentation.

我打算用 PHP 构建一个简单的 Web 仪表板,其中包含一些基本数据(基本上是一个简单的主页),但最终可能希望将其发展为一个完整的 Web 应用程序.有什么想法吗?

I'm planning to build a simple web dashboard in PHP with some basic data (basically a quick-n-dirty homepage), but may want to grow it into a full blown web app eventually. Any thoughts?

当我找到一些时,我会在此处发布一个列表(如果您以前使用过其中任何一个,请随时发表评论):

As I find some, I'll post a list here (feel free to comment if you've used any of them before):

免费

  • opentick (soprano) // link doesn't work

非免费

推荐答案

Yahoo 的 api 提供了 CSV 转储:

Yahoo's api provides a CSV dump:

示例:http://finance.yahoo.com/d/quotes.csv?s=msft&f=price

我不确定它是否记录在案,但此代码示例应该展示所有功能(即统计类型 [查询字符串中的参数 f].我相信您可以找到文档(官方或不是)如果你搜索它.

I'm not sure if it is documented or not, but this code sample should showcase all of the features (namely the stat types [parameter f in the query string]. I'm sure you can find documentation (official or not) if you search for it.

http://www.goldb.org/ystockquote.html

编辑

我发现了一些非官方文档:

I found some unofficial documentation:

http://ilmusaham.wordpress.com/tag/stock-yahoo-data/

这篇关于适用于股票/金融数据的最佳/最全面的 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆