kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
Loading...
Searching...
No Matches
kalshi::ws::MarketPosition Struct Reference

Real-time position updates for authenticated user. More...

#include <kalshi/ws_models.hpp>

Public Attributes

std::string user_id
 User ID for the position.
 
std::string market_ticker
 Market ticker for the position.
 
std::string position_fp
 Fixed-point net position (2 decimals)
 
std::string position_cost_dollars
 Current cost basis of the position as a fixed-point dollar string.
 
std::string realized_pnl_dollars
 Realized profit/loss as a fixed-point dollar string.
 
std::string fees_paid_dollars
 Total fees paid as a fixed-point dollar string.
 
std::string position_fee_cost_dollars
 Total position fee cost as a fixed-point dollar string.
 
std::string volume_fp
 Fixed-point total volume traded (2 decimals)
 
std::optional< std::int64_t > subaccount
 Optional subaccount number for the position.
 

Detailed Description

Real-time position updates for authenticated user.

Member Data Documentation

◆ user_id

std::string kalshi::ws::MarketPosition::user_id

User ID for the position.

◆ market_ticker

std::string kalshi::ws::MarketPosition::market_ticker

Market ticker for the position.

◆ position_fp

std::string kalshi::ws::MarketPosition::position_fp

Fixed-point net position (2 decimals)

◆ position_cost_dollars

std::string kalshi::ws::MarketPosition::position_cost_dollars

Current cost basis of the position as a fixed-point dollar string.

◆ realized_pnl_dollars

std::string kalshi::ws::MarketPosition::realized_pnl_dollars

Realized profit/loss as a fixed-point dollar string.

◆ fees_paid_dollars

std::string kalshi::ws::MarketPosition::fees_paid_dollars

Total fees paid as a fixed-point dollar string.

◆ position_fee_cost_dollars

std::string kalshi::ws::MarketPosition::position_fee_cost_dollars

Total position fee cost as a fixed-point dollar string.

◆ volume_fp

std::string kalshi::ws::MarketPosition::volume_fp

Fixed-point total volume traded (2 decimals)

◆ subaccount

std::optional<std::int64_t> kalshi::ws::MarketPosition::subaccount

Optional subaccount number for the position.


The documentation for this struct was generated from the following file: