cryptocurrency trading bot
Project description
Hades Bot
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
How to start
1. Setup Environment
python -m venv runtime
runtime\Scripts\activate
pip install -r requirements.txt
# if requirements.txt not work
pip3 install python-okx websockets requests binance-futures-connector schedule "uvicorn[standard]" fastapi pandas
2. Change Configuration
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
3. Strategy
implement your own Strategy (extends Strategy) and replace the strategy in main.py
python main.py
4. Deploy to PROD
4.1 Create /app and execute git clone
sudo -s
mkdir /app
chown user:user /app
cd /app
git clone git@github.com:Icefoxes/trading-bot.git .
4.2 setup supervisor
pip3 install supervisor
echo_supervisord_conf > /etc/supervisord.conf
echo bot.ini >> /etc/supervisord.conf
supervisord -c /etc/supervisord.conf
supervisorctl start bot
Planned feature
- backtesting
- ui to show backtesting
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hades-core-0.0.1.tar.gz
(21.0 kB
view hashes)
Built Distribution
hades_core-0.0.1-py3-none-any.whl
(20.1 kB
view hashes)
Close
Hashes for hades_core-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0d05f1b7901ecccc19c4f8c8dd03ce54f3f5fa598a8d3d3628e752927eb8963 |
|
MD5 | 88a0668c24e64c8a2ab9ec2b01e79442 |
|
BLAKE2b-256 | c327b4506807633f027477b1ad1586b4eeb0ccc87d3b1a77e1bb7a0406e31d74 |