mcf-long-short / ibkr-options-volatility-trading Goto Github PK
View Code? Open in Web Editor NEWVolatility trading using Long and Short Straddle options strategies on Interactive Broker using Yahoo Finance and TWS API
License: MIT License
Volatility trading using Long and Short Straddle options strategies on Interactive Broker using Yahoo Finance and TWS API
License: MIT License
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.