-
Data (theoptionlab uses EOD data from the CBOE).
-
Python (currently version 3, for version 2 see previous release: https://github.com/theoptionlab/theoptionlab/releases/tag/v1.0)
-
Install dependencies: pip3 install -r requirements.txt
-
Postgres database
-
Create database and tables with script in create_db.sql psql -h host -d optiondata -U user -f /path/to/create.sql
-
Adapt private/settings_template.py with your own settings and rename the file into settings.py
-
Run insert_fullday.py and free_money_scanner.py
-
Insert all the data and precompute the greeks (takes a while), with or without the risk free rate (takes an even longer while)
-
Once the data is in place, run your first backtest with call_backtests.py
nulllogicone/theoptionlab
The Option Lab is an automated backtesting framework for option trading strategies. The results generated by the code are visualised on our website.
PythonGPL-3.0