git clone https://gitlab.com/MadDeveloper/bot-warhead.git theddy
cd theddy
npm install --global typescript lite-server
npm installCreate 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=loremYou 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:startOr one by step:
npm run build && npm startIf you want to see in realtime the chart:
npm run chartAnd then you can go to http://localhost:3000 and watch the magic happening!
touch envfileThen 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=xxxxxdocker build -t theddy .or
npm run docker:builddocker run -it --env-file envfile -p 3000:3000 theddyor
npm run docker:run