Skip to main content
GET
Get user position series

Path Parameters

user_pubkey
string
required

User pubkey (base58 encoded)

Query Parameters

traderPdaIndex
integer<int32>
required

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

subaccountIndex
integer<int32>
required

Subaccount holding the position; 0 is the cross account.

marketSymbol
string
required

Market symbol of the position (e.g., "SOL").

slot
integer<int64>
required

Slot at which the position was held.

slotIndex
integer<int32>

Transaction within slot: the position as held right after it. Omit for the position as held at the end of the slot.

resolution
enum<string>

Spacing of the points; one of 1m, 5m, 15m, 1h, 4h, 1d. Omit to let the server pick one from the position's duration. Time resolution for aggregated data queries

Available options:
1m,
5m,
15m,
1h,
4h,
1d,
1w,
1M

Response

200 - application/json

Successful response

A position sampled at its open, at every resolution boundary while it was held, and at its close (or now, while open).

points
object[]
required
positionId
string
required
resolution
enum<string>
required

Time resolution for aggregated data queries

Available options:
1m,
5m,
15m,
1h,
4h,
1d,
1w,
1M