v1
latestOpenAPI 3.0.02026-07-2471143147.5 KBPortfolio
Get realized PnL
Get realized PnL history for an account. Returns position change events where PnL was realized (position closed, reduced, or flipped).
get/v1/portfolio/realized-pnl
Query parameters
accountstring
Account address to query (hex format, required)
limitinteger
Number of items per page (default 100, max 1000)
pageinteger
Page number (1-based, default 1)
market_idstring uint64
Filter by market ID (optional)
fromstring uint64
Start timestamp in nanoseconds (optional)
tostring uint64
End timestamp in nanoseconds (optional)
Response
A successful response.