module
0.0.0-20241126160943-cbdeaadbc32c
Repository: https://github.com/erwanlbp/trading-bot.git
Documentation: pkg.go.dev
# README
trading-bot
Installation
- Copy
config/config.yaml.example
toconfig/config.yaml
and fill it with your coins and config (each field should be detailed in the example file)
Development
- Have Go installed
- Create a test account and API Key on Binance Testnet
- Add the API Key/Secret to your
config.yaml
- Activate
test_mode
in theconfig.yaml
Install Go dependancies
go mod tidy
Start the bot
make run
Other commands can be found in the Makefile
Deployment
To start the bot on production
git pull
on your servergo mod tidy
make build
- (Check the
config.yaml
, test mode, thresholds, etc) nohup ./trading-bot > log.txt &
to start the bot in a backend process unlinked to your sessiontail -f log.txt
to follow the logs
To stop the bot
jobs
to list the commands ending with&
that are runningfg
to make it a "frontend" processctrl-c
to cancel the process (it will wait 2s to finish cleanly)ps -aux | grep "trading-bot"
to check that there's no trading-bot process running anymore