POST
/
api
/
v1
/
developer
/
trading
/
hyperliquid
/
info
/
order
/
history
Get order history
curl --request POST \
  --url https://api.allium.so/api/v1/developer/trading/hyperliquid/info/order/history \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "type": "historicalOrders",
  "user": "0x1234567890abcdef1234567890abcdef12345678",
  "startTime": 1640995200000,
  "endTime": 1641081600000
}'
[
  {
    "order": {
      "coin": "<string>",
      "side": "<string>",
      "limitPx": "<string>",
      "sz": "<string>",
      "oid": 123,
      "timestamp": 123,
      "triggerCondition": "<string>",
      "isTrigger": true,
      "triggerPx": "<string>",
      "children": "<any>",
      "isPositionTpsl": true,
      "reduceOnly": true,
      "orderType": "<string>",
      "origSz": "<string>",
      "tif": "<string>",
      "cloid": "<string>"
    },
    "status": "<string>",
    "statusTimestamp": 123
  }
]
This endpoint is a 1-1 drop in replacement for the historicalOrders endpoint in Hyperliquid. However there are no limits to how far back you can retrieve orders. We included two extra optinal parameters startTime and endTime to facilitate this.

Authorizations

X-API-KEY
string
header
required

Body

application/json

Response

200
application/json

Order history retrieved successfully

The response is of type object[].