Skip to content

Webhook Events

TokenBot defines 46 event types across 12 families, all listed below. You can subscribe to any subset of these (up to 20 events per webhook), or to all of them with ["*"].

Not every event is emitted yet — the list below is the full registrable set. Trade, copier, copy, strategy, exchange, reward, and withdrawal events are the most commonly fired today.

{
"event": "trade.executed",
"event_id": "evt_abc123",
"timestamp": "2026-06-20T12:00:00Z",
"data": { ... }
}

Each delivery also carries X-TokenBot-Event and X-TokenBot-Delivery-Id headers (see Security).

EventDescription
trade.createdA new trade order has been placed
trade.updatedTrade order details updated
trade.executedTrade order executed/filled
trade.filledDeprecated alias of trade.executed
trade.cancelledTrade order cancelled
trade.failedTrade order failed
trade.closedTrade position closed

Example payload (trade.executed):

{
"event": "trade.executed",
"event_id": "evt_123",
"timestamp": "2026-06-20T12:00:00Z",
"data": {
"id": "trd_abc123",
"exchange_account_id": "exc_123",
"strategy_id": "str_123",
"trade_pair": "BTC/USDT",
"side": "BUY",
"type": "LIMIT",
"price": 50000.00,
"amount": 0.1,
"fee": 0.05,
"status": "FILLED",
"executed_at": "2026-06-20T12:00:00Z"
}
}
EventDescription
position.openedA position was opened
position.closedA position was closed
EventDescription
strategy.createdNew strategy created
strategy.updatedStrategy settings updated
strategy.activatedStrategy activated
strategy.deactivatedStrategy deactivated
strategy.deletedStrategy deleted
strategy.errorStrategy encountered an error
EventDescription
copier.createdNew copier created
copier.updatedCopier settings updated
copier.startedCopier activated
copier.stoppedCopier deactivated
copier.deletedCopier deleted
copier.errorCopier encountered an error
EventDescription
copy.triggeredCopy initiated from a strategy signal
copy.completedCopy successfully executed
copy.failedCopy failed to execute

Example payload (copy.failed):

{
"event": "copy.failed",
"event_id": "evt_456",
"timestamp": "2026-06-20T12:01:00Z",
"data": {
"copier_id": "cop_123",
"strategy_id": "str_123",
"source_trade_id": "trd_abc123",
"error": "Insufficient balance"
}
}
EventDescription
exchange.connectedExchange account connected
exchange.disconnectedExchange account disconnected (e.g., invalid credentials)
exchange.errorExchange account error
exchange.balance_updatedExchange balance changed
exchange.sync_completedExchange balance sync completed
EventDescription
alert.triggeredA configured alert fired
alert.price_reachedA price threshold was reached
alert.volume_spikeA volume spike was detected
alert.drawdown_exceededA drawdown threshold was exceeded
alert.profit_target_reachedA profit target was reached
EventDescription
user.createdA user was created
user.updatedA user was updated
user.verifiedA user was verified
user.suspendedA user was suspended
user.deletedA user was deleted
EventDescription
account.createdAn account was created
account.verifiedAn account was verified
EventDescription
reward.earnedReward points / $TBOT earned
EventDescription
withdrawal.createdA withdrawal was requested
withdrawal.completedA withdrawal completed
EventDescription
system.maintenanceMaintenance window notification
system.updatePlatform update notification

Subscribe to specific events or use ["*"] for all:

{
"url": "https://your-server.com/webhooks",
"events": ["trade.executed", "copy.failed", "copier.started"]
}