用于下载历史财务报表的编程 API

发布于 2024-09-19 10:00:42 字数 1539 浏览 3 评论 0原文

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

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

发布评论

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

评论(4

倾听心声的旋律 2024-09-26 10:00:53

Kimonolabs 与 EDGAR 合作提供 SEC API,该 API 可以合并资产负债表、损益表等。

http:// www.kimonolabs.com/sec/docs

Kimonolabs has partnered with EDGAR to provide the SEC API, which consolidates balance sheets, income statements, etc.

http://www.kimonolabs.com/sec/docs

妞丶爷亲个 2024-09-26 10:00:51

Intrinio 通过 API 提供该数据 - 每天最多可免费进行 500 次 API 调用,但您可以获得整个资产负债表,损益表,或单次通话的现金流量表。最简单的尝试方法是使用 API Explorer,它会为您构建 API 调用。您可以在此处查看 API 文档

一些例子:

https://api.intrinio.com/fundamentals/standardized?identifier=AAPL&statement=income_statement&type=FY&date=2017-01-01

以 JSON 格式提取 Apple 的损益表。您可以使用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 等。

Intrinio provides that data via API- its free up to 500/daily API calls, but you can get an entire balance sheet, income statement, or statement of cashflows for a single call. The easiest way to try it is with the API Explorer, which builds the API calls for you. You can view the API documentation here.

Some examples:

https://api.intrinio.com/fundamentals/standardized?identifier=AAPL&statement=income_statement&type=FY&date=2017-01-01

That pulls Apple's income statement in JSON format. You can use curl, GET, or basically any programming language.

https://api.intrinio.com/prices?identifier=AAPL&start_date=2010-01-01&end_date=2017-01-01

The prices endpoint will get you the entire price history for any US stock.

https://api.intrinio.com/data_point?identifier=AAPL&item=last_price

You can use data_point to get the latest data- this example gets the real time stock price, but you can get EBITDA, EV/EBITDA, etc.

不知在何时 2024-09-26 10:00:49

我知道问题中已经提到了 Mergent ( http://www.mergent.com/ )评论,但我想在一个单独的答案中指出它,以便其他人不会错过它:Mergent API 是专门为满足这些需求而设计的(特别是 Company Fundamentals API),而且他们实际上确实有免费计划。

I know that Mergent ( http://www.mergent.com/ ) was already mentioned in the question and the comments, but I wanted to call it out in a separate answer so that others won't miss it: The Mergent APIs were specifically designed to meet these needs (specifically the Company Fundamentals API), and they actually do have free plans.

回忆追雨的时光 2024-09-26 10:00:48

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

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