GetOptionPositions

Get all your open option positions with current P&L.

GETGetOptionPositions🔐 Auth

Returns all open option positions for the authenticated account, including unrealized P&L calculated from current mark prices.

Request

ParameterTypeDescription

Response

FieldTypeDescription
positionsOptionPosition[]List of open option positions
total_valueint64Total portfolio value (8 decimals)
total_pnlint64Total 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)
}