2015-04-06 77 views
0

我想獲得一些選定的金融雅虎API股票的數據。我在這裏列出這些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 

是否有這給我確切的解決方案this.Even任何API是paid.Please爲我提供正確和充分的信息也提前感謝。

+0

這是這裏的主題;你需要去搜索付費和免費的股票信息APIs,也刮。沒有人可能知道你的意思是什麼*「這給了我確切的解決方案」*,除非你陳述了具體的問題,例如「在過去的n個季度找到APPL的預期市盈率」。也可以查看http://money.stackexchange.com – smci 2015-04-06 07:15:24

+0

像https://in.finance.yahoo.com/q/ae?s=API。這是Analyst Estimates類型的股票數據。在samw的方式,我需要上面選擇的選項與他們各自的數據。因爲沒有選擇可用:彙總,訂單額外。但是,在這裏我需要上述這些選項,如上所述。點擊選項後,我將獲得相應的頁面數據 – user1620882 2015-04-06 07:28:57

回答

0

您可以在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") 

收入statment:

get_income_statement("AAPL") 

現金流statment:

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」 與任何股票你想要的數據。