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

Unable to get any examples working. #188

Open
steelliberty opened this issue May 15, 2024 · 2 comments
Open

Unable to get any examples working. #188

steelliberty opened this issue May 15, 2024 · 2 comments

Comments

@steelliberty
Copy link

from yahoofinancials import YahooFinancials

def tstYfinData(symbol,end_date):

ticker = symbol
yahoo_financials = YahooFinancials(ticker)

balance_sheet_data_qt = yahoo_financials.get_financial_stmts('quarterly', 'balance')
income_statement_data_qt = yahoo_financials.get_financial_stmts('quarterly', 'income')
all_statement_data_qt =  yahoo_financials.get_financial_stmts('quarterly', ['income', 'cash', 'balance'])
apple_earnings_data = yahoo_financials.get_stock_earnings_data()
apple_net_income = yahoo_financials.get_net_income()
historical_stock_prices = yahoo_financials.get_historical_price_data('2008-09-15', '2018-09-15', 'weekly')

print(balance_sheet_data_qt)
print(income_statement_data_qt)
print(all_statement_data_qt)
print(apple_earnings_data)
print(apple_net_income)
print(historical_stock_prices)
@ycebear
Copy link

ycebear commented Sep 19, 2024

The program seems to hang, it never finishes and gives no results (win12, Jupyter, Python 3.9.17 (main, Jul 5 2023, 21:22:06) [MSC v.1916 64 bit (AMD64)])

@fmqeisfeld
Copy link

same

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

3 participants