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

Yahoo data_source issue - TypeError: string indices must be integers, not 'str' #7

Open
salomon73 opened this issue Dec 22, 2023 · 0 comments

Comments

@salomon73
Copy link

Hi,

I downloaded your package today, and cannot get it to work with the data_source yahoo
in _read_one_data data = j["context"]["dispatcher"]["stores"]["HistoricalPriceStore"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: string indices must be integers, not 'str'

Here is an option since they apparently hanged the response format panda_datareader.
I then changed data = pdr.DataReader(stock_symbol, data_source, start, end) by data = pdr.yahoo.daily.YahooDailyReader(stock_symbol,start,end) but I then have to change the dataplotter constructor and I don't think this is the way to go.

You might want to look into this too.

Also, if I may suggest, maybe to remove the other datasources if the code does not provide any way to treat them?

Thanks, I will let you know what workaround I find.

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