Skip to main content

Subscribe

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

Response

{
  "channel": "userOrderRejections",
  "data": {
    "user": "0x742d35cc6634c0532925a3b844bc9e7595f0beb",
    "rejections": [
      {
        "orderId": "0x1234...",
        "coin": "BTC",
        "reason": "Insufficient margin",
        "code": "INSUFFICIENT_MARGIN",
        "timestamp": 1701234567890
      }
    ]
  }
}

Notes

  • code is a machine-readable string forwarded from the rejection event and should not be treated as a closed enum.