Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of financial dates #190

Open
promexio opened this issue Jul 27, 2024 · 0 comments
Open

Order of financial dates #190

promexio opened this issue Jul 27, 2024 · 0 comments

Comments

@promexio
Copy link

Hi,
I do not get how the order of dates is established - let's run the following and have a look to the result - the dates are not sorted in a logical sequence, why? What am I doing wrong? Kr --Gabriel

ticker = 'AAPL'

yahoo_financials = YahooFinancials(ticker)

#print(yahoo_financials.get_financial_stmts('annual', 'cash')['cashflowStatementHistory'][ticker].keys())
cf = yahoo_financials.get_financial_stmts('annual', 'cash')['cashflowStatementHistory'][ticker]
bs = yahoo_financials.get_financial_stmts('annual', 'balance')['balanceSheetHistory'][ticker]
pl = yahoo_financials.get_financial_stmts('annual', 'income')['incomeStatementHistory'][ticker]

print(cf)
print(bs)
print(pl)

print("cashflow:")
for i, date in enumerate(cf):
    print(i,date)
print("..............")

print("balancesheet:")
for i, date in enumerate(bs):
    print(i,date)
print("............")

print("p&l:")
for i, date in enumerate(pl):
    print(i,date)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant