├── .devcontainer.json ├── .gitignore ├── LICENSE.txt ├── README.md ├── doc ├── Makefile ├── make.py ├── requirements.txt └── source │ ├── backtest.rst │ ├── conf.py │ ├── historicData.rst │ ├── index.rst │ └── yahooFinance.rst ├── docker ├── Dockerfile ├── Makefile ├── README.md ├── docker-compose.yaml ├── files │ └── start_jupyter_lab.sh ├── jupyter_notebook_config.py └── requirements.txt ├── examples ├── ib_checkConnection.py ├── ib_combiOrders.py ├── ib_getHistData.py ├── ib_getOrderData.py ├── ib_getPortfolioData.py └── ib_placeOrder.py ├── lib ├── __init__.py ├── backtest.py ├── bats.py ├── calendar.py ├── cboe.py ├── check_versions.py ├── csvDatabase.py ├── data │ └── vix_expiration.txt ├── eventSystem.py ├── extra.py ├── indicators.py ├── interactiveBrokers │ ├── __init__.py │ ├── handlers.py │ ├── helpers.py │ ├── histData.py │ └── tickLogger.py ├── interactivebrokers.py ├── logger.py ├── plotting.py ├── qtpandas.py ├── vixFutures.py └── yahooFinance.py ├── notebooks ├── demo_libs.ipynb ├── portfolio.ipynb └── returns.ipynb ├── scratch └── get_yahoo_data.ipynb ├── setup.py ├── tests ├── run_tests ├── test_basic.py ├── test_cboe.py └── test_yahooFinance.py ├── tools ├── createDistribution.py ├── getHistData │ ├── getData.py │ └── settings.yml └── tickLogger │ ├── settings.yml │ └── tickLogger.py └── twp ├── __init__.py ├── classes.py └── functions.py /.devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/.devcontainer.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/README.md -------------------------------------------------------------------------------- /doc/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/doc/Makefile -------------------------------------------------------------------------------- /doc/make.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/doc/make.py -------------------------------------------------------------------------------- /doc/requirements.txt: -------------------------------------------------------------------------------- 1 | sphinx-argparse 2 | -------------------------------------------------------------------------------- /doc/source/backtest.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/doc/source/backtest.rst -------------------------------------------------------------------------------- /doc/source/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/doc/source/conf.py -------------------------------------------------------------------------------- /doc/source/historicData.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/doc/source/historicData.rst -------------------------------------------------------------------------------- /doc/source/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/doc/source/index.rst -------------------------------------------------------------------------------- /doc/source/yahooFinance.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/doc/source/yahooFinance.rst -------------------------------------------------------------------------------- /docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/docker/Dockerfile -------------------------------------------------------------------------------- /docker/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/docker/Makefile -------------------------------------------------------------------------------- /docker/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/docker/README.md -------------------------------------------------------------------------------- /docker/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/docker/docker-compose.yaml -------------------------------------------------------------------------------- /docker/files/start_jupyter_lab.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/docker/files/start_jupyter_lab.sh -------------------------------------------------------------------------------- /docker/jupyter_notebook_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/docker/jupyter_notebook_config.py -------------------------------------------------------------------------------- /docker/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/docker/requirements.txt -------------------------------------------------------------------------------- /examples/ib_checkConnection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/examples/ib_checkConnection.py -------------------------------------------------------------------------------- /examples/ib_combiOrders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/examples/ib_combiOrders.py -------------------------------------------------------------------------------- /examples/ib_getHistData.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/examples/ib_getHistData.py -------------------------------------------------------------------------------- /examples/ib_getOrderData.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/examples/ib_getOrderData.py -------------------------------------------------------------------------------- /examples/ib_getPortfolioData.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/examples/ib_getPortfolioData.py -------------------------------------------------------------------------------- /examples/ib_placeOrder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/examples/ib_placeOrder.py -------------------------------------------------------------------------------- /lib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/backtest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/backtest.py -------------------------------------------------------------------------------- /lib/bats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/bats.py -------------------------------------------------------------------------------- /lib/calendar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/calendar.py -------------------------------------------------------------------------------- /lib/cboe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/cboe.py -------------------------------------------------------------------------------- /lib/check_versions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/check_versions.py -------------------------------------------------------------------------------- /lib/csvDatabase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/csvDatabase.py -------------------------------------------------------------------------------- /lib/data/vix_expiration.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/data/vix_expiration.txt -------------------------------------------------------------------------------- /lib/eventSystem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/eventSystem.py -------------------------------------------------------------------------------- /lib/extra.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/extra.py -------------------------------------------------------------------------------- /lib/indicators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/indicators.py -------------------------------------------------------------------------------- /lib/interactiveBrokers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/interactiveBrokers/__init__.py -------------------------------------------------------------------------------- /lib/interactiveBrokers/handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/interactiveBrokers/handlers.py -------------------------------------------------------------------------------- /lib/interactiveBrokers/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/interactiveBrokers/helpers.py -------------------------------------------------------------------------------- /lib/interactiveBrokers/histData.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/interactiveBrokers/histData.py -------------------------------------------------------------------------------- /lib/interactiveBrokers/tickLogger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/interactiveBrokers/tickLogger.py -------------------------------------------------------------------------------- /lib/interactivebrokers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/interactivebrokers.py -------------------------------------------------------------------------------- /lib/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/logger.py -------------------------------------------------------------------------------- /lib/plotting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/plotting.py -------------------------------------------------------------------------------- /lib/qtpandas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/qtpandas.py -------------------------------------------------------------------------------- /lib/vixFutures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/vixFutures.py -------------------------------------------------------------------------------- /lib/yahooFinance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/lib/yahooFinance.py -------------------------------------------------------------------------------- /notebooks/demo_libs.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/notebooks/demo_libs.ipynb -------------------------------------------------------------------------------- /notebooks/portfolio.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/notebooks/portfolio.ipynb -------------------------------------------------------------------------------- /notebooks/returns.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/notebooks/returns.ipynb -------------------------------------------------------------------------------- /scratch/get_yahoo_data.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/scratch/get_yahoo_data.ipynb -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/setup.py -------------------------------------------------------------------------------- /tests/run_tests: -------------------------------------------------------------------------------- 1 | pytest -s 2 | -------------------------------------------------------------------------------- /tests/test_basic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/tests/test_basic.py -------------------------------------------------------------------------------- /tests/test_cboe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/tests/test_cboe.py -------------------------------------------------------------------------------- /tests/test_yahooFinance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/tests/test_yahooFinance.py -------------------------------------------------------------------------------- /tools/createDistribution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/tools/createDistribution.py -------------------------------------------------------------------------------- /tools/getHistData/getData.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/tools/getHistData/getData.py -------------------------------------------------------------------------------- /tools/getHistData/settings.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/tools/getHistData/settings.yml -------------------------------------------------------------------------------- /tools/tickLogger/settings.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/tools/tickLogger/settings.yml -------------------------------------------------------------------------------- /tools/tickLogger/tickLogger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/tools/tickLogger/tickLogger.py -------------------------------------------------------------------------------- /twp/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/twp/__init__.py -------------------------------------------------------------------------------- /twp/classes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/twp/classes.py -------------------------------------------------------------------------------- /twp/functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sjev/trading-with-python/HEAD/twp/functions.py --------------------------------------------------------------------------------