Skip to content
LogoLogo

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

FieldTypeRequiredMeaning
typeStringYesuserFills.
userAddressYesCustomer account address; the signer must own it or have read permission.
aggregateByTimeBooleanNoOmit or use false; aggregation is unsupported.

Request example

{
  "type": "userFills",
  "user": "0x1111111111111111111111111111111111111111"
}

Response fields

FieldMeaning
oid / tid / hashOrder ID, fill identifier and fill hash.
coin / side / px / szConfigured market, direction, price and executed quantity.
dir / startPosition / closedPnlPosition transition, starting quantity and realized PnL.
crossed / fee / feeTokenLiquidity-taking flag and the fee in USDC.
timeFill 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.

All account queries.