Skip to main content
GET
/
trader
/
{authority}
/
order-history
Get order history
curl --request GET \
  --url https://perp-api.phoenix.trade/trader/{authority}/order-history
{
  "data": [
    {
      "baseQty": "<string>",
      "filledBaseQty": "<string>",
      "isReduceOnly": true,
      "marketSymbol": "<string>",
      "orderSequenceNumber": "<string>",
      "price": "<string>",
      "remainingBaseQty": "<string>",
      "side": "bid",
      "status": "active",
      "completedAt": "2023-11-07T05:31:56Z",
      "isConditionalOrder": true,
      "isStopLoss": true,
      "isStopLossDirection": true,
      "placedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "hasMore": true,
  "nextCursor": "<string>",
  "prevCursor": "<string>"
}

Path Parameters

authority
string
required

Authority pubkey

Query Parameters

traderPdaIndex
integer<int32>
Required range: x >= 0
marketSymbol
string
limit
integer<int64>
required
cursor
string
privyId
string
orderStatus
string

Response

200 - application/json

Order history

Generic paginated response wrapper with bidirectional cursor support.

The cursor system supports both forward (newer) and backward (older) pagination:

  • prev_cursor: Use this cursor to poll for new items (items newer than the current result set)
  • next_cursor: Use this cursor to load more items (items older than the current result set)

The direction is embedded in the cursor itself, so clients just need to pass the appropriate cursor to the cursor parameter.

data
object[]
required
hasMore
boolean
required

Whether there are more results available after this page

nextCursor
string | null

Opaque cursor for fetching the next page of older results. Pass this value as the cursor parameter in the next request to load more.

prevCursor
string | null

Opaque cursor for fetching newer items (for polling). Pass this value as the cursor parameter to get items newer than the first item in data.