|
kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
|
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. | |
Real-time position updates for authenticated user.
| std::string kalshi::ws::MarketPosition::user_id |
User ID for the position.
| std::string kalshi::ws::MarketPosition::market_ticker |
Market ticker for the position.
| std::string kalshi::ws::MarketPosition::position_fp |
Fixed-point net position (2 decimals)
| std::string kalshi::ws::MarketPosition::position_cost_dollars |
Current cost basis of the position as a fixed-point dollar string.
| std::string kalshi::ws::MarketPosition::realized_pnl_dollars |
Realized profit/loss as a fixed-point dollar string.
| std::string kalshi::ws::MarketPosition::fees_paid_dollars |
Total fees paid as a fixed-point dollar string.
| std::string kalshi::ws::MarketPosition::position_fee_cost_dollars |
Total position fee cost as a fixed-point dollar string.
| std::string kalshi::ws::MarketPosition::volume_fp |
Fixed-point total volume traded (2 decimals)
| std::optional<std::int64_t> kalshi::ws::MarketPosition::subaccount |
Optional subaccount number for the position.