POST
/
api
/
v1
/
developer
/
trading
/
hyperliquid
/
info
/
fills
Get user fills
curl --request POST \
  --url https://api.allium.so/api/v1/developer/trading/hyperliquid/info/fills \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "type": "userFills",
  "user": "0x1234567890abcdef1234567890abcdef12345678",
  "startTime": 1640995200000,
  "endTime": 1641081600000,
  "aggregateByTime": false
}'
[
  {
    "closedPnl": "<string>",
    "coin": "<string>",
    "crossed": true,
    "dir": "<string>",
    "hash": "<string>",
    "oid": 123,
    "px": "<string>",
    "side": "<string>",
    "startPosition": "<string>",
    "sz": "<string>",
    "time": 123,
    "fee": "<string>",
    "feeToken": "<string>",
    "tid": 123,
    "liquidation": {
      "liquidatedUser": "<string>",
      "markPx": "<string>",
      "method": "<string>"
    }
  }
]
This endpoint is a 1-1 drop in replacement for the userFills and userFillsByTime in HyperliquidHowever there are no limits to how far back you can go when fetching fills.

Authorizations

X-API-KEY
string
header
required

Body

application/json

Response

200
application/json

Fills retrieved successfully

The response is of type object[].