我正在尝试新的(?)yahoofinancials library。我还没有尝试所有的方法,但get_financial_stmts
对我不起作用。有没有人有同样的问题?
from yahoofinancials import YahooFinancials
yahoo_financials = YahooFinancials('AAPL')
print(yahoo_financials.get_financial_stmts('annual', 'income'))
输出:
{'incomeStatementHistory': {'AAPL': None}}
我尝试的另一种方法是get_historical_price_data
,它工作正常。