Skip to content

Webhooks

Receive real-time event notifications via HTTP webhooks. 24 event types covering trades, copiers, strategies, and exchanges.


TokenBot webhooks deliver real-time HTTP POST requests to your endpoint whenever events occur on your account. Use them to build custom integrations — Discord bots, Telegram alerts, trading dashboards, and more.


Terminal window
tokenbot webhooks add --url https://example.com/hooks/tokenbot --events trade.filled,copier.changed
tokenbot webhooks list

--events is a comma-separated list. Verify the endpoint before relying on it:

Terminal window
tokenbot webhooks test <id>

Remove one with tokenbot webhooks remove <id> (it double-confirms).


TokenBot supports 24 event types across these categories:

EventDescription
trade.createdA new trade was detected
trade.updatedA trade was updated
trade.filledA trade was completely filled
trade.closedA trade was closed
trade.cancelledA trade was cancelled
EventDescription
copier.createdA copier was created
copier.updatedCopier settings were updated
copier.deletedA copier was deleted
copier.startedA copier was started
copier.stoppedA copier was stopped
EventDescription
copy.triggeredA copy trade was triggered
copy.completedA copy trade completed successfully
copy.failedA copy trade failed to execute
EventDescription
strategy.createdA new strategy was created
strategy.updatedStrategy settings were changed
strategy.deletedA strategy was deleted
strategy.activatedA strategy was activated
strategy.deactivatedA strategy was deactivated
EventDescription
exchange.connectedAn exchange account was connected
exchange.disconnectedAn exchange account was disconnected
exchange.sync_completedExchange data sync completed

StatusMeaning
EnabledWebhook is active and receiving events
DisabledWebhook is paused (manually or automatically)
FailingWebhook has consecutive delivery failures

Webhooks are automatically disabled after repeated failures. Re-enable them from the webhooks settings page after fixing your endpoint.


{
"id": "evt_abc123",
"type": "trade.filled",
"timestamp": "2026-02-21T05:00:00Z",
"data": {
"tradeId": "trd_xyz",
"symbol": "BTC/USDT",
"side": "buy",
"size": "0.15",
"price": "65234.50",
"exchange": "binance"
}
}

  • All webhooks are sent over HTTPS
  • Each request includes a signature header (X-TokenBot-Signature) for verification
  • Failed deliveries are retried with exponential backoff (up to 3 retries)
  • Failed deliveries are stored in a dead letter queue for debugging

Webhook deliveries are rate-limited to prevent overwhelming your endpoint. Events are queued and delivered in order.


With webhooks, you can build your own:

  • Discord/Telegram bots — Post trade alerts to your community
  • Custom dashboards — Track trades in real-time
  • Automated workflows — Trigger actions based on trade events
  • Logging systems — Archive all trading activity