Skip to main content
GET
Wallet - PnL Details

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chain
enum<string>
required

A chain name listed in supported networks Supported blockchain chains

Available options:
sol,
eth,
bsc
walletAddress
string
required

An address of a wallet

Query Parameters

cursor
string

Pagination cursor

limit
integer<int64>
default:20

Number of results per page

direction
enum<string>
default:next

Pagination direction

Available options:
next,
prev
resolution
enum<string>
required

Time resolution for PnL aggregation PnL resolution period

Available options:
1d,
7d,
30d,
all
positionState
enum<string>

Filter by position state (open or closed) Filter for PnL position state

Available options:
open,
all,
closed
sortBy
enum<string>

Sort field for PnL detail results Sort field for PnL details query

Available options:
totalPnl,
realizedPnl,
unrealizedPnl

Response

200 - application/json

Successful response

Full PnL details result with cursor pagination.

data
object[]
required

List of per-token PnL details

summary
object
required

Aggregated PnL summary

endCursor
string | null

Cursor for the end of current page

Example:

"eyJpZCI6ImVuZCJ9"

hasNext
boolean

Whether there is a next page

Example:

false

hasPrev
boolean

Whether there is a previous page

Example:

false

startCursor
string | null

Cursor for the start of current page

Example:

"eyJpZCI6InN0YXJ0In0="