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
type
enum<string>
required

Request type - must be 'historicalOrders'

Available options:
historicalOrders
user
string
required

User's wallet address (hex string)

startTime
integer

Start time filter (Unix timestamp in milliseconds)

endTime
integer

End time filter (Unix timestamp in milliseconds)

Response

Order history retrieved successfully

order
object
status
string | null

Order status

statusTimestamp
integer | null

Timestamp when status was last updated