Utility to download historical market data from Interactive Brokers. The heavy lifting is done by ib_insync project.
- Python 3.6
- ib_insync
- IB's TWS API
- Download and install IB TWS API
- Install ib-dl with pip:
pip install ib_dl
- Start TWS, enable API access
- Download data:
ib-dl SPY --duration "1 M" --bar-size "1 min" --tws-uri localhost:7492:999
For further details see the help screen: ib-dl --help
Docker images are provided under tibkiss/ib_dl