Skip to content

Deployment

Deploy strategies to live exchanges from the dashboard or CLI.

Prerequisites

  1. Exchange API credentials added to your account
  2. A built and tested strategy

Adding Exchange Credentials

Via Dashboard

  1. Go to Deploy > Credentials > Add Credential
  2. Select exchange (Binance, Bybit, or Hyperliquid)
  3. Enter your API key and secret
  4. Optionally mark as testnet
  5. Click Test Connection to verify

Via CLI

bash
tradectl auth set binance
# Follow prompts for API key and secret

tradectl auth list     # Show configured exchanges
tradectl auth remove binance

Credentials are encrypted with AES-256-GCM at rest and only decrypted in-memory during strategy execution.

Deploying a Strategy

Via Dashboard

  1. Go to Deploy > New Deployment
  2. Select a strategy
  3. Select credentials and symbols
  4. Configure parameters
  5. Click Deploy

Via CLI

bash
tradectl run --config config.json

Set isEmulator: false in your config to trade live, or true for paper trading.

Run in the background as a daemon:

bash
tradectl run --config config.json --daemon

Validate config without starting:

bash
tradectl run --config config.json --dry-run

Managing Bots

bash
tradectl status              # Show all running bots
tradectl status --config config.json   # Show specific bot

tradectl logs --follow       # Follow all bot logs
tradectl logs --config config.json --lines 100

tradectl stop --config config.json    # Stop a specific bot
tradectl stop --all                   # Stop all bots

Monitoring

Live deployments show:

  • Real-time order fills via WebSocket
  • Current positions and unrealized PnL
  • Uptime and cumulative PnL
  • Deployment logs

Open the monitor dashboard:

bash
tradectl monitor              # Opens http://localhost:9100
tradectl monitor --url http://custom:9100

Controls

ActionDescription
StopGracefully stop the strategy (closes open positions)
RestartRestart with the same configuration
DeleteStop and remove the deployment

Notifications

Configure alerts for trade fills, bot status changes, and errors via:

  • Telegram
  • Email
  • Webhook

tradectl — Automate Crypto Trading