- Install prerequisites
- Create a Conda environment and install Python packages.
conda create -n algo-trading python=3.13 -y
conda activate algo-trading
pip install -r requirements.txt
- Copy
.env.exampleto.envand fill in your IB account ID. - Run IB Gateway and log in with your account.
- In the upper menu of IB Gateway, go to "Configure->Settings" and uncheck "Read-Only API".
- Run
python login_test.pyto test the connection to IB Gateway. - Run
python test_bitcoin.pyto test the Bitcoin trading logic.