我想得到一些选定的股票的财务雅虎API的数据。我在这里列出了这些API。
Chart
http://finance.yahoo.com/echarts?s=AAPL+Interactive#
Key statistics
http://finance.yahoo.com/q/ks?s=AAPL+Key+Statistics
Competitors
http://finance.yahoo.com/q/co?s=AAPL+Competitors
Analyst Opinion
http://finance.yahoo.com/q/ao?s=AAPL+Analyst+Opinion
Analyst Estimates
http://finance.yahoo.com/q/ae?s=AAPL+Analyst+Estimates
Major Holders
http://finance.yahoo.com/q/mh?s=AAPL+Major+Holders
Income Statement (annual and Quarterly)
http://finance.yahoo.com/q/is?s=AAPL
Balance Sheet (annual and Quarterly)
http://finance.yahoo.com/q/bs?s=AAPL+Balance+Sheet&annual
Cash Flow (annual and Quarterly)
http://finance.yahoo.com/q/cf?s=AAPL+Cash+Flow&annual
有没有任何api给我确切的解决方案,它是paid.Please提供给我正确和充分的信息,也感谢提前。
发布于 2018-01-15 05:14:38
使用Python语言中的yahoo_fin包,您可以获得所需的大部分内容。其文档在这里:http://theautomatic.net/yahoo_fin-documentation/。
下面是一些示例:
拉取分析师信息(例如https://finance.yahoo.com/quote/AAPL/analysts?p=AAPL):
from yahoo_fin.stock_info import *
get_analysts_info("AAPL")
收入报表:
get_income_statement("AAPL")
现金流量表:
get_cash_flow("AAPL")
资产负债表:
get_balance_sheet("AAPL")
关键统计数据(例如https://finance.yahoo.com/quote/AAPL/key-statistics?p=AAPL):
get_stats("AAPL")
主要持有人(例如https://finance.yahoo.com/quote/AAPL/holders?p=AAPL):
get_holders("AAPL")
你只需要把"AAPL“替换成你想要的数据。
https://stackoverflow.com/questions/29466897
复制相似问题