Fills by time
Endpoint
POST /info
Selector: type: "userFillsByTime"
Purpose
Returns retained customer fills within an inclusive time interval.
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 | userFillsByTime. |
user | Address | Yes | Customer account address; the signer must own it or have read permission. |
startTime | Unsigned integer | Yes | Inclusive start timestamp in Unix milliseconds. |
endTime | Unsigned integer | No | Inclusive end timestamp in Unix milliseconds; defaults to query time and cannot be in the future. |
aggregateByTime | Boolean | No | Omit or use false; aggregation is unsupported. |
Request example
{
"type": "userFillsByTime",
"user": "0x1111111111111111111111111111111111111111",
"startTime": 1796000000000,
"endTime": 1796238000000
}Response fields
| Field | Meaning |
|---|---|
Response entries | The same fill shape as userFills; see that page for field meanings. |
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
- The range is inclusive:
startTime <= fill time <= endTime. - startTime must not exceed endTime, and endTime cannot exceed query time.
- Oldest selected fills first; at most 2,000 entries.
- aggregateByTime must be omitted or false.