下载历史财务报表编程API [英] Programmatic API for downloading historical financial statements

查看:500
本文介绍了下载历史财务报表编程API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个Web API(免费或可在单个开发人员的一些合理的费用),下载一个给定的股票代码财务报表(损益表,资产负债表和现金流量表)

I am looking for a web API (free or available at some reasonable cost for an individual developer) to download financial statements for a given stock symbol (income statement, balance sheet and cash flow statements)

我搜索这个网站,发现几个关于股票行情有用的链接(<一个href=\"http://stackoverflow.com/questions/417453/best-most-com$p$phensive-api-for-stocks-financial-data\">Best/Most COM prehensive API股票/金融数据)
我看着YQL,但它是有限的股票相关的信息 HTTP://www.gummy-stuff .ORG /雅虎data.htm

I searched on this site and found couple of useful links about stock quotes (Best/Most Comprehensive API for Stocks/Financial Data) I looked at YQL but it is limited to stock related information http://www.gummy-stuff.org/Yahoo-data.htm)

谷歌财经似乎并没有给一个可编程的API财务报表。

Google finance does not seem to give a programmatic api for financial statements.

最近的我能得到是 http://www.mergent.com/ 以及它们不是免费的

Closest I could get to was http://www.mergent.com/ and they are not free:

在理想情况下,如果财务报表是在程序员友好的格式,这将是了不起的,但我不认为这是可行的。鉴于此,下载此数据的一种简单的方法是第二个最好的选择。

Ideally, if the financial statement is in a "programmer friendly format", it would be terrific but I don't think that is feasible. Given that, an easy way of downloading this data is the second best option.

有什么建议?

推荐答案

该quantmod - [R包有功能拉财务报表来自谷歌。它通过刮HTML做到这一点。如果你想给它一个尝试,运行这些命令在A R提示:

The quantmod R package has functionality to pull financial statements from Google. It does this by scraping the HTML. If you'd like to give it a try, run these commands at a R prompt:

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

这篇关于下载历史财务报表编程API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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