Skip to main content
GET
Get position events

Path Parameters

user_pubkey
string
required

User pubkey (base58 encoded)

position_id
string
required

Position id

Query Parameters

traderPdaIndex
integer<int32>
required

PDA index of the user's trader holding the position.

limit
integer<int32>

Number of events to return (max 1000)

Required range: x >= 0
cursor
string

nextCursor of a previous page

Response

200 - application/json

Successful response

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.