GetOptionPositions
Get all your open option positions with current P&L.
GET
GetOptionPositions🔐 AuthReturns all open option positions for the authenticated account, including unrealized P&L calculated from current mark prices.
Request
| Parameter | Type | Description |
|---|
Response
| Field | Type | Description |
|---|---|---|
positions | OptionPosition[] | List of open option positions |
total_value | int64 | Total portfolio value (8 decimals) |
total_pnl | int64 | Total unrealized P&L (8 decimals) |
OptionPosition Schema
{
contract_id: uint32,
symbol: string, // "BTC-28JAN26-100000-C"
side: string, // "long" or "short"
size: int64, // Contracts held (8 decimals)
entry_price: int64, // Average entry (8 decimals)
mark_price: int64, // Current mark (8 decimals)
unrealized_pnl: int64, // Paper P&L (8 decimals)
margin_used: int64, // Margin requirement (8 decimals)
liquidation_price: int64, // Auto-liquidation level (8 decimals)
}