Messages
{
"type": "market_position",
"sid": 14,
"msg": {
"user_id": "user123",
"market_ticker": "FED-23DEC-T3.00",
"position_fp": "100.00",
"position_cost_dollars": "50.0000",
"realized_pnl_dollars": "10.0000",
"fees_paid_dollars": "1.0000",
"position_fee_cost_dollars": "0.5000",
"volume_fp": "15.00"
}
}WebSockets
Market Positions
Real-time updates of your positions in markets. Requires authentication.
Requirements:
- Authentication required
- Market specification optional (omit to receive all positions)
- Filters are by
market_ticker/market_tickersonly;market_id/market_idsare not supported - Updates sent when your position changes due to trades, settlements, etc.
Monetary Values:
All monetary values are returned as fixed-point dollar strings (_dollars suffix).
Use case: Portfolio tracking, position monitoring, P&L calculations
WSS
market_positions
Messages
{
"type": "market_position",
"sid": 14,
"msg": {
"user_id": "user123",
"market_ticker": "FED-23DEC-T3.00",
"position_fp": "100.00",
"position_cost_dollars": "50.0000",
"realized_pnl_dollars": "10.0000",
"fees_paid_dollars": "1.0000",
"position_fee_cost_dollars": "0.5000",
"volume_fp": "15.00"
}
}apiKey
type:apiKey
API key authentication required for WebSocket connections. The API key should be provided during the WebSocket handshake.
Market Position Update
type:object
Real-time position updates for authenticated user