portfolio_boPnl
Return realized binary options PnL grouped by event, newest first. Includes traded open and unsettled markets. total_pnl is gross of fees; settlement_pnl is null until a position settles. Available on Lighter only.
get/api/v1/portfolio/boPnl
Query parameters
account_indexinteger · int64Required
Account index to query.
event_idinteger · int64Optional
Binary options event identifier.
cursorinteger · int64Optional
Opaque pagination cursor returned by the previous response; pass it unchanged.
limitinteger · int64 · min: 1 · max: 100OptionalDefault:
Maximum number of records to return.
100Header parameters
authorizationstringRequired
Auth token in the Authorization header.
Responses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
next_cursorinteger · int64OptionalExample:
1400
Bad request
application/json
get/api/v1/portfolio/boPnl
GET /api/v1/portfolio/boPnl?account_index=1 HTTP/1.1
Host: mainnet.zklighter.elliot.ai
authorization: text
Accept: */*
{
"code": 200,
"message": "text",
"events": [
{
"event_id": 1,
"event_title": "text",
"event_description": "text",
"total_pnl": "text",
"outcomes": [
{
"market_id": 1,
"symbol": "text",
"outcome": 0,
"end_timestamp": 1,
"settlement_pnl": "text",
"last_trade_id": 1,
"total_pnl": "text"
}
]
}
],
"next_cursor": 1
}Last updated
Was this helpful?