Project to create a trade bot for bitmex trade platform.
- docker => 19.03.8
- docker-compose => 1.25.4
- bitmex account
Its purpose is to automate a rule created by the trader.
This bot still under construction and does not guarantee anything, it may not even work properly. You can lose money with it! Test the gotrader bot in the test network first! But if you have good results, PR the logic =)
Don't panic!
- New and close order, buy or sell
- leverage
- Able to use custom logic
- XBTUSD
- ETHUSD
Add your settings to the file configs/config.yml
Go back to the root dir and follow the steps below:
docker-compose build
After test and build, run the bot (background):
docker-compose up -d
You can see the logs with docker logs command, like:
docker logs -f gotrader
To stop the bot, run:
docker-compose down
The acual logic can be changed on internal/logic/. Some examples can be found on examples/.
Go to the example/ folder and then, choose or create a strategy. Copy the file like martingale_go to the internal/logic/logic.go.
- GOTRADER_MODE
prod
(default): loadconfig.yml
testnet
: loadconfig-testnet.yml
- REDISURL
redis:6379
(default): endpoint to use redis