Overview
Subscribe toorderUpdates to receive real-time notifications when your order status changes.
Subscribe
Request Body
| Parameter | Type | Description |
|---|---|---|
method* | string | Must be "subscribe" |
subscription* | object | See below |
subscription.type* | string | Must be "orderUpdates" |
subscription.user* | string | Your wallet address (lowercase), e.g., "0x742d35cc6634c0532925a3b844bc9e7595f0beb" |
Response
Subscription Confirmation:Order Fields
| Field | Type | Description |
|---|---|---|
coin | string | Asset symbol (BTC, ETH, etc.) |
side | string | "B" (buy) or "A" (ask/sell) |
limitPx | string | Limit price |
sz | string | Current order size (decreases as filled) |
oid | string | Order ID (128-bit hex string) |
venueOid | number | Venue order ID (assigned when accepted) |
timestamp | number | Order creation time in milliseconds |
origSz | string | Original order size |
Status Fields
| Field | Type | Description |
|---|---|---|
status | string | Current order status (see table below) |
statusTimestamp | number | Time of last status change |
Order Status Values
| Status | Description |
|---|---|
pending | Order placed, awaiting venue acceptance |
open | Order accepted by venue, not yet filled |
partial | Order partially filled |
filled | Order completely filled |
canceled | Order canceled (user or system initiated) |
rejected | Order rejected by venue |
Unsubscribe
Notes
isSnapshot: truesent immediately with all open/partial ordersisSnapshot: falsefor real-time updates- User address must be lowercase
szdecreases as order fills,origSzstays constant