Recent fills
Endpoint
POST /info
Selector: type: "userFills"
Purpose
Returns recent fills attributed to the private customer account.
Authorization
Owner or approved reader for user. The SDK signs requests; raw clients use proof headers.
Request fields
| Field | Type | Required | Meaning |
|---|---|---|---|
type | String | Yes | userFills. |
user | Address | Yes | Customer account address; the signer must own it or have read permission. |
aggregateByTime | Boolean | No | Omit or use false; aggregation is unsupported. |
Request example
{
"type": "userFills",
"user": "0x1111111111111111111111111111111111111111"
}Response fields
| Field | Meaning |
|---|---|
oid / tid / hash | Order ID, fill identifier and fill hash. |
coin / side / px / sz | Configured market, direction, price and executed quantity. |
dir / startPosition / closedPnl | Position transition, starting quantity and realized PnL. |
crossed / fee / feeToken | Liquidity-taking flag and the fee in USDC. |
time | Fill time in Unix milliseconds. |
Response example
Illustrative response:
[
{
"closedPnl": "0",
"coin": "BTC",
"crossed": true,
"dir": "Open Long",
"hash": "0x4444444444444444444444444444444444444444444444444444444444444444",
"oid": 42,
"px": "100000",
"side": "B",
"startPosition": "0",
"sz": "0.01",
"time": 1796238000000,
"fee": "0.45",
"feeToken": "USDC",
"tid": 7
}
]Constraints
- Newest fills first; at most 2,000 entries.
- aggregateByTime must be omitted or false.
- Quantities and prices are decimal strings.