Webhooks

This page describes the webhook payloads associated with the lifecycle events.

Order

Lifecycle

flowchart TD
    A[<a href="#order_A">Completed</a>]

Payload

Order completed

{
  "event": {
    "orgId": 22959,
    "entity": "Orders",
    "eventType": "UPDATE",
    "numRetries": 0,
    "createdAt": "2025-11-11T11:54:15.204Z",
    "updatedAt": "2025-11-11T11:54:15.204Z"
  },
  "data": {
    "id": 1377903,
    "clientOrderId": "1615751",
    "orgId": 22959,
    "orgUserId": "lestrade.1762852159",
    "symbol": "USDT_AED",
    "price": 0,
    "averagePrice": 3.67647059,
    "estimatedPrice": 3.67647059,
    "side": "BUY",
    "type": "RFQ",
    "kind": "GOOD_TILL_CANCEL",
    "expiryDate": null,
    "quantity": 1,
    "quoteQuantity": 0,
    "filled": 1,
    "status": "COMPLETED",
    "rejectionReason": null,
    "createdAt": "2025-11-11T11:54:11.341Z",
    "updatedAt": "2025-11-11T11:54:14.376Z",
    "baseAveragePrice": 3.67647059,
    "commissionRate": 0,
    "vatRate": 5,
    "commissionAmount": 0,
    "vatAmount": 0,
    "netExecutedAmount": 3.68,
    "totalExecutedAmount": 3.68,
    "commissionAsset": "AED"
  }
}

Order deleted

  {
    "event": {
      "orgId": 10,
      "entity": "Orders",
      "eventType": "DELETE",
      "numRetries": 0,
      "createdAt": "2025-12-22T10:00:00.000Z",
      "updatedAt": "2025-12-22T10:00:00.000Z"
    },
    "data": {
      "id": 12345,
      "clientOrderId": "order-abc-123",
      "orgId": 10,
      "orgUserId": "sherlock.holmes",
      "symbol": "BTC_USD",
      "price": 45000.00,
      "averagePrice": 45050.00,
      "estimatedPrice": 45000.00,
      "side": "BUY",
      "type": "MARKET",
      "kind": "DEFAULT",
      "expiryDate": null,
      "quantity": 0.5,
      "quoteQuantity": 22525.00,
      "filled": 0.5,
      "status": "CANCELLED",
      "rejectionReason": null,
      "createdAt": "2025-12-22T09:00:00.000Z",
      "updatedAt": "2025-12-22T10:00:00.000Z",
      "portfolio": "SPOT",
      "baseAveragePrice": 45050.00,
      "commissionRate": 0.5,
      "vatRate": 5.0,
      "commissionAmount": 112.63,
      "vatAmount": 5.63,
      "netExecutedAmount": 22525.00,
      "totalExecutedAmount": 22637.63,
      "commissionAsset": "USD"
    }
  }