Skip to content
LogoLogo

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

FieldTypeRequiredMeaning
typeStringYesuserFillsByTime.
userAddressYesCustomer account address; the signer must own it or have read permission.
startTimeUnsigned integerYesInclusive start timestamp in Unix milliseconds.
endTimeUnsigned integerNoInclusive end timestamp in Unix milliseconds; defaults to query time and cannot be in the future.
aggregateByTimeBooleanNoOmit or use false; aggregation is unsupported.

Request example

{
  "type": "userFillsByTime",
  "user": "0x1111111111111111111111111111111111111111",
  "startTime": 1796000000000,
  "endTime": 1796238000000
}

Response fields

FieldMeaning
Response entriesThe 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.

All account queries.