binance/okx based, currently it can only support real time Tick/Bar/Order/Position live update and monitor. In bot/strategies/sample
, created a simple strategy, doing nothing but send notification
python -m venv runtime
runtime\Scripts\activate
pip install -r requirements.txt
# if requirements.txt not work
pip3 install python-okx pandas websockets requests binance-futures-connector schedule "uvicorn[standard]" fastapi
copy example.conf
and rename to app.conf
, change parameter
[binance]
apiKey = apiKey
secretKey = secretKey
[okx]
apiKey = apiKey
secretKey = secretKey
passphrase = passphrase
ws_private = wss://wsaws.okx.com:8443/ws/v5/private
ws_public = wss://wsaws.okx.com:8443/ws/v5/public
ws_business = wss://wsaws.okx.com:8443/ws/v5/business
domain = https://aws.okx.com
useServerTime = False
[notification]
token = token
prefix = prefix
period = 8-23
implement your own Strategy (extends Strategy) and replace the strategy in main.py
python main.py
sudo -s
mkdir /app
chown user:user /app
cd /app
git clone [email protected]:Icefoxes/trading-bot.git .
pip3 install supervisor
echo_supervisord_conf > /etc/supervisord.conf
echo bot.ini >> /etc/supervisord.conf
supervisord -c /etc/supervisord.conf
supervisorctl start bot
- backtesting
- ui to show backtesting