我正在寻找一个网络应用程序接口(免费或以合理的价格为个人开发人员提供),以下载给定股票代码(损益表,资产负债表和现金流量表)的财务报表。
我在这个网站上搜索,发现了几个关于股票行情的有用链接(Best/Most Comprehensive API for Stocks/Financial Data)我查看了YQL,但它仅限于股票相关信息( http://www.gummy-stuff.org/Yahoo-data.htm)
谷歌财经似乎没有为财务报表提供程序化的api。
我能找到的最接近的网站是http://www.mergent.com/,但它们不是免费的:
理想情况下,如果财务报表是“程序员友好的格式”,那就太棒了,但我不认为这是可行的。鉴于此,下载此数据的一种简单方法是次佳选择。
有什么建议吗?
发布于 2010-09-14 10:08:17
quantmod R包具有从Google提取财务报表的功能。它通过抓取HTML来做到这一点。如果您想尝试一下,请在R提示符下运行以下命令:
install.packages('quantmod') # run this once to install quantmod
library(quantmod)
getFinancials("IBM") # automatically assigns data to "IBM.f" object
viewFinancials(IBM.f,"BS","Q") # quarterly balance sheet
viewFinancials(IBM.f,"IS","Q") # quarterly income statement
viewFinancials(IBM.f,"CF","Q") # quarterly cash flow statement
viewFinancials(IBM.f,"BS","A") # annual balance sheet
viewFinancials(IBM.f,"IS","A") # annual income statement
viewFinancials(IBM.f,"CF","A") # annual cash flow statement发布于 2010-10-19 06:51:13
我知道在问题和评论中已经提到了Mergent ( http://www.mergent.com/ ),但我想在一个单独的答案中指出它,这样其他人就不会错过它: Mergent API是专门为满足这些需求而设计的(特别是公司基础API),而且它们实际上有免费的计划。
发布于 2017-05-05 04:35:47
Intrinio通过API提供这些数据--每天多达500次的API调用是免费的,但您可以通过一次调用获得完整的资产负债表、损益表或现金流量表。尝试它的最简单方法是使用API Explorer,它会为您构建API调用。你可以在这里使用view the API documentation。
下面是一些例子:
https://api.intrinio.com/fundamentals/standardized?identifier=AAPL&statement=income_statement&type=FY&date=2017-01-01这就拉动了苹果JSON格式的损益表。您可以使用curl、GET或基本上任何编程语言。
https://api.intrinio.com/prices?identifier=AAPL&start_date=2010-01-01&end_date=2017-01-01价格端点将为您提供任何美国股票的完整价格历史记录。
https://api.intrinio.com/data_point?identifier=AAPL&item=last_price您可以使用data_point获取最新数据-此示例获取实时股票价格,但您可以获取EBITDA、EV/EBITDA等。
https://stackoverflow.com/questions/3693189
复制相似问题