Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

User Fills

Real-time fill notifications for a user address.

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

Set "aggregateByTime": true to combine fills for the same order at the same timestamp (sizes summed, prices weighted-averaged, fees summed).

Data format: Fill[]

{"channel": "userFills", "data": [{"coin": "BTC", "px": "65000.5", "sz": "0.1", "side": "B", "time": 1699900000000, "startPosition": "0.5", "dir": "Open Long", "closedPnl": "0", "hash": "0x...", "oid": 12345, "crossed": false, "fee": "6.50", "tid": 111, "feeToken": "USDC"}]}

Direction Values

  • Open Long / Close Long
  • Open Short / Close Short