git clone https://gitlab.com/MadDeveloper/bot-warhead.git theddy
cd theddy
npm install --global typescript lite-server
npm install
Create your API keys on the platform (binance, gdax, etc.) and export them as environment vars. For exemple, on Linux, add to your ~/.bashrc the following lines:
export BINANCE_API_KEY=lorem
export BINANCE_API_SECRET=lorem
export BINANCE_API_PASSPHRASE=lorem
export GDAX_API_KEY=lorem
export GDAX_API_SECRET=lorem
export GDAX_API_PASSPHRASE=lorem
You can configure the bot with the config file, one file per market (for example: config.binance.ts
for the Binance market).
When you are ready, you can build and start the bot with one command:
npm run build:start
Or one by step:
npm run build && npm start
If you want to see in realtime the chart:
npm run chart
And then you can go to http://localhost:3000 and watch the magic happening!
touch envfile
Then add the following lines to the envfile:
BINANCE_API_KEY=xxxxxx
BINANCE_API_SECRET=xxxxx
BINANCE_API_PASSPHRASE=xxxxx
GDAX_API_KEY=xxxx
GDAX_API_SECRET=xxxxx
GDAX_API_PASSPHRASE=xxxxx
docker build -t theddy .
or
npm run docker:build
docker run -it --env-file envfile -p 3000:3000 theddy
or
npm run docker:run