userFills

post
/info

Request array of user fills.

Body

Request array of user fills.

typeundefined · enumRequired

Type of request.

Possible values:
userstring · min: 42 · max: 42Required

User address.

Pattern: ^0[xX][0-9a-fA-F]+$
aggregateByTimebooleanOptional

If true, partial fills are aggregated when a crossing order fills multiple resting orders.

Responses
200

Array of user trade fills.

application/json
post
/info
POST /info HTTP/1.1
Host: api.hyperliquid.xyz
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "type": "userFills",
  "user": "text",
  "aggregateByTime": true
}
[
  {
    "coin": "text",
    "px": "text",
    "sz": "text",
    "side": "B",
    "time": 1,
    "startPosition": "text",
    "dir": "text",
    "closedPnl": "text",
    "hash": "text",
    "oid": 1,
    "crossed": true,
    "fee": "text",
    "tid": 1,
    "cloid": "text",
    "liquidation": {
      "liquidatedUser": "text",
      "markPx": "text",
      "method": "market"
    },
    "feeToken": "text",
    "twapId": 1
  }
]

Last updated