Skip to main content

Subscribe

{
  "method": "subscribe",
  "subscription": {
    "type": "orderUpdates",
    "user": "0x742d35cc6634c0532925a3b844bc9e7595f0beb"
  }
}

Response

{
  "channel": "orderUpdates",
  "data": {
    "isSnapshot": true,
    "user": "0x742d35cc6634c0532925a3b844bc9e7595f0beb",
    "orders": [
      {
        "order": {
          "coin": "BTC",
          "side": "B",
          "limitPx": "50000.00",
          "sz": "0.1",
          "oid": "0x1234567890abcdef...",
          "venueOid": null,
          "timestamp": 1701234567890,
          "origSz": "0.1",
          "orderType": "stop_limit",
          "tif": "Gtc",
          "isPositionTpsl": false,
          "isTrigger": true,
          "triggerCondition": "tp",
          "triggerPx": "50500.00",
          "reduceOnly": false,
          "parentOrderId": null,
          "twapOrderId": "0xaaaa...",
          "twapSliceIndex": 0
        },
        "status": "waitingForTrigger",
        "statusTimestamp": 1701234567890
      }
    ]
  }
}

Notes

  • Initial snapshots are only sent when there are matching active orders. - Snapshot contents can include pending, pending_parent_fill, waitingForTrigger, open, and partial. - Order payloads can include twapOrderId and twapSliceIndex.