Skip to content

Install

chrisleekr edited this page Jul 18, 2022 · 7 revisions

Installing binance-trading-bot

Environment Parameters

Use environment parameters to adjust parameters. Check /config/custom-environment-variables.json to see list of available environment parameters.

Or use the frontend to adjust configurations after launching the application.

How to install

  1. Create .env file based on .env.dist.

    Environment Key Description Sample Value
    BINANCE_LIVE_API_KEY Binance API key for live (from Binance)
    BINANCE_LIVE_SECRET_KEY Binance API secret for live (from Binance)
    BINANCE_TEST_API_KEY Binance API key for test (from Binance)
    BINANCE_TEST_SECRET_KEY Binance API secret for test (from Binance)
    BINANCE_SLACK_WEBHOOK_URL Slack webhook URL (from Slack)
    BINANCE_SLACK_CHANNEL Slack channel "#binance"
    BINANCE_SLACK_USERNAME Slack username Chris
    BINANCE_LOCAL_TUNNEL_SUBDOMAIN Local tunnel public URL subdomain binance
  2. Check docker-compose.yml for BINANCE_MODE environment parameter

  3. Launch the application with docker-compose

    git pull
    docker-compose up -d

    or using the latest build image from DockerHub

    git pull
    docker-compose -f docker-compose.server.yml pull
    docker-compose -f docker-compose.server.yml up -d

    Note that if using Raspberry Pi 32bit, you can still use pull to use the build images. Do not need to re-build in Raspberry Pi.

  4. Open browser http://0.0.0.0:8080 to see the frontend

    • When launching the application, it will notify the public URL to Slack.

Install via Stackfile

  1. In Portainer create a new Stack

  2. Copy the content of docker-stack.yml or upload the file

  3. Set environment keys for binance-bot in the docker-stack.yml

  4. Launch and open browser http://0.0.0.0:8080 to see the frontend

Clone this wiki locally