Giter Club home page Giter Club logo

ibkr-options-volatility-trading's People

Contributors

amilinko avatar krivi95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ibkr-options-volatility-trading's Issues

Getting this error when running docker-compose

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

How to debug cli commands

Example how to debug cli command

To debug market_watcher start command:

  • At the end of market_watcher_cli.py file add:

    if __name__ == "main":
        # Example using CLI command with an options
        start(["--stocks", r"src/market_watcher/research/target_stocks.yaml"])
  • Start debugging from market_watcher_cli.py file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.