Portfolio
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
Request
- Base URLhttps://api.testnet.rise.trade
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.
Changes
No recorded changes to this operation across all 2 revisions of this API.