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

Getting this error when running docker-compose #15

Open
LorenzoZC opened this issue Dec 19, 2023 · 0 comments
Open

Getting this error when running docker-compose #15

LorenzoZC opened this issue Dec 19, 2023 · 0 comments

Comments

@LorenzoZC
Copy link

Starting MarketWatcher...
MarketWatcher started.
Reading target stocks from file: src/market_watcher/research/target_stocks.yaml
Instantiating email notifier...
Instantiating slack notifier...
Instantiating MarketWatcher and running the engine.
Traceback (most recent call last):
File "/usr/local/bin/market_watcher_cli", line 33, in
sys.exit(load_entry_point('market-watcher', 'console_scripts', 'market_watcher_cli')())
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1137, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1668, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/app/src/market_watcher/market_watcher_cli.py", line 103, in start
market_watcher_engine.search_for_intestment_opportunities()
File "/app/src/market_watcher/common.py", line 80, in search_for_intestment_opportunities
self.process_latest_market_movements()
File "/app/src/market_watcher/common.py", line 90, in process_latest_market_movements
self.daily_pnls = self.get_daily_pnls()
File "/app/src/market_watcher/common.py", line 114, in get_daily_pnls
return yahoo_financials_target_stocks.get_current_percent_change()
File "/usr/local/lib/python3.8/site-packages/yahoofinancials/init.py", line 719, in get_current_percent_change
return self._stock_price_data('regularMarketChangePercent')
File "/usr/local/lib/python3.8/site-packages/yahoofinancials/init.py", line 658, in _stock_price_data
if self.get_stock_price_data()[tick] is None:
File "/usr/local/lib/python3.8/site-packages/yahoofinancials/init.py", line 606, in get_stock_price_data
return self.get_clean_data(self.get_stock_tech_data('price'), 'price')
File "/usr/local/lib/python3.8/site-packages/yahoofinancials/init.py", line 494, in get_stock_tech_data
return self.get_stock_data(tech_type=tech_type)
File "/usr/local/lib/python3.8/site-packages/yahoofinancials/init.py", line 481, in get_stock_data
dict_ent = self._create_dict_ent(tick, statement_type, tech_type, report_name, hist_obj)
File "/usr/local/lib/python3.8/site-packages/yahoofinancials/init.py", line 409, in _create_dict_ent
re_data = self._scrape_data(YAHOO_URL, tech_type, statement_type)
File "/usr/local/lib/python3.8/site-packages/yahoofinancials/init.py", line 169, in _scrape_data
stores = data["context"]["dispatcher"]["stores"]["QuoteSummaryStore"][tech_type]
TypeError: string indices must be integers

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