This project implements a simple trading bot for Coinbase Advanced using 15 minute candles. Candles, orders and tick logs are persisted in a local SQLite database so the bot can resume after restarts.
pip install -r requirements.txtCreate a .env file in the project root containing API credentials with read and trade permissions only:
COINBASE_API_KEY=your_key
COINBASE_API_SECRET=your_secret
COINBASE_API_PASSPHRASE=your_passphrase
python bot.py --live # live trading (default)
python bot.py --paper # disable order placementAdditional options:
--riskrisk per trade (default 0.01)--loglevelPython logging level
Run the unit tests with:
python -m pytest -q