Skip to main content

Subscribe

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

Response

{
  "channel": "userFills",
  "data": {
    "user": "0x742d35cc6634c0532925a3b844bc9e7595f0beb",
    "isSnapshot": false,
    "fills": [
      {
        "coin": "BTC",
        "px": "50000.00",
        "sz": "0.1",
        "side": "B",
        "time": 1701234567890,
        "startPosition": "0",
        "dir": "Open Long",
        "closedPnl": "0",
        "hash": "0x1234...",
        "orderId": "0x1234567890abcdef1234567890abcdef",
        "crossed": true,
        "fee": "2.50",
        "tid": 67890,
        "feeToken": "USDC",
        "forcedClosureType": "adl"
      }
    ]
  }
}

Notes

  • Fill payloads may include forcedClosureType for forced-closure fills. - Messages are incremental updates; the websocket broadcaster does not send a historical snapshot for this channel.