xml 如何通过股票代码获取有关公司财务、资产负债表、现金流等的数据

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/894695/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-06 12:31:24  来源:igfitidea点击:

How to get data about a company's financials, balance sheet, cash flow, etc. via its ticker symbol

xmlapifinance

提问by go minimal

Are there any good, free (or cheap) sources to get information about a company's financials that I can access via an API or XML feed or anything besides screen-scraping? Specifically I'm looking for things like total assets, liabilities, revenue, etc.

是否有任何好的、免费(或便宜)的来源来获取我可以通过 API 或 XML 提要或除屏幕抓取之外的任何内容访问的公司财务信息?具体来说,我正在寻找总资产、负债、收入等内容。

回答by indy

Yahoo! finance has a really simple API which returns results in CSV format. As well as stock price it can also return Dividend Yield, EBITDA, Annualized Gains etc. Here's an example:

雅虎!Finance 有一个非常简单的 API,它以 CSV 格式返回结果。除了股票价格,它还可以返回股息收益率、EBITDA、年化收益等。这是一个例子:

http://finance.yahoo.com/d/quotes.csv?s=MSFT+AAPL+f=j4g3y

A really good explanation of what it can return is available here

关于它可以返回什么的一个很好的解释可以在这里找到

[Edit] I just tried to use the explanation page, but it has been the subject of a Yahoo takedown notice. WayBack Machine solves that problem: http://web.archive.org/web/20140503202125/http://www.gummy-stuff.org/Yahoo-data.htm

[编辑] 我只是尝试使用解释页面,但它已成为雅虎删除通知的主题。WayBack Machine 解决了这个问题:http://web.archive.org/web/20140503202125/http: //www.gummy-stuff.org/Yahoo-data.htm

回答by OpenSource

Have you tried wolframalpha.com? for example if you enter MSFT it gives incredible information regarding microsoft. And here is their api information http://www.wolframalpha.com/WolframAlphaAPI.pdf

你试过 wolframalpha.com 吗?例如,如果您输入 MSFT,它会提供有关 microsoft 的令人难以置信的信息。这是他们的 api 信息http://www.wolframalpha.com/WolframAlphaAPI.pdf

回答by MattK

Xignitehas a pretty cheap $50 a month or so api and it seems to be actually useful.

Xignite有一个非常便宜的每月 50 美元左右的 api,它似乎实际上很有用。

If you are going to be scraping web pages I'd recommend you just grab a useful library like hpricot.

如果您要抓取网页,我建议您只抓取一个有用的库,例如 hpricot。

回答by Matthias Wandel

I doubt it. Getting sanitized and cleaned up financial information is hard. It usually takes me a whole day just cleaning up the price data I scrape off the web whenever I update my data on chartgame.com

我对此表示怀疑。清理和清理财务信息是很困难的。每当我更新我在 chartgame.com 上的数据时,我通常需要一整天来清理我从网上刮下的价格数据

回答by Demi

Likely not for free (at least for full details), but I could stand corrected. Reuters has some form of APIthat gives in-depth details on businesses. If stock details are sufficient you could get those for free from Google Finance API, but as far as I can tell they don't offer all of the other details.

可能不是免费的(至少对于全部细节),但我可以接受纠正。 路透社有某种形式的 API,可以提供有关企业的深入细节。如果股票详细信息足够,您可以从Google Finance API免费获得这些信息,但据我所知,他们不提供所有其他详细信息。

回答by Eugene Osovetsky

Try the Mergent Company Fundamentals API at http://www.mergent.com/servius/- lots of very detailed financial statement data (balance sheets / income statements / cashflow statements / ratios), standardized across companies, going back more than 20 years

http://www.mergent.com/servius/尝试 Mergent Company Fundamentals API - 大量非常详细的财务报表数据(资产负债表 / 损益表 / 现金流量表 / 比率),跨公司标准化,可追溯到 20 多年