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

get_balance_sheet doesn't return any data #96

Open
MarioVeloso opened this issue Dec 22, 2022 · 3 comments
Open

get_balance_sheet doesn't return any data #96

MarioVeloso opened this issue Dec 22, 2022 · 3 comments

Comments

@MarioVeloso
Copy link

A few functions stop working a few days ago such as get_balance_sheet or get_income_statement, but others till working like si.get_stats_valuation, si.get_quote_table or si.get_stats.

bs = si.get_balance_sheet(stock)
print(bs)
print(bs.index)
income = si.get_income_statement(stock)
print("Income statement_ ")
print(income)

Empty DataFrame
Columns: []
Index: []
Index([], dtype='object')
503
5541
30
Traceback (most recent call last):
File "/Users/marioveloso/PycharmProjects/watchlist/fundamentals.py", line 134, in
income = si.get_income_statement(stock)
File "/Users/marioveloso/anaconda3/envs/watchlist/lib/python3.8/site-packages/yahoo_fin/stock_info.py", line 422, in get_income_statement
temp = json_info["incomeStatementHistory"]["incomeStatementHistory"]
TypeError: string indices must be integers

@Addi-jpg
Copy link

Addi-jpg commented Jan 7, 2023

I have the same issue, please fix quick!

@Thisisnad
Copy link

I'm also having issues with "get_company_info()" modulle. The error returned appears to be similar.
Wondering if anyone have found any fix? :-)

appl_info = si.get_company_info("aapl")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\OS_OOP_NK\Python\PY3.11_202212\Lib\site-packages\yahoo_fin\stock_info.py", line 1015, in get_company_info
json_info = json_info["assetProfile"]
~~~~~~~~~^^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'

@checkmarkets
Copy link

Got the same issue

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

4 participants