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

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

#include <kalshi/ws_models.hpp>

Public Attributes

std::string order_id
 Unique order identifier.
 
std::string user_id
 User identifier.
 
std::string ticker
 Market ticker for the order.
 
std::int64_t exchange_index {}
 Identifier for the exchange shard where the order resides.
 
kalshi::OrderStatus status {}
 Current order status.
 
kalshi::Side side {}
 Deprecated.
 
bool is_yes {}
 Deprecated.
 
kalshi::OutcomeSide outcome_side {}
 The outcome side this order is positioned for.
 
kalshi::BookSide book_side {}
 Same directional bit as outcome_side in book vocabulary.
 
std::string yes_price_dollars
 Yes price in fixed-point dollars (4 decimals)
 
std::string fill_count_fp
 Number of contracts filled in fixed-point (2 decimals)
 
std::string remaining_count_fp
 Number of contracts remaining in fixed-point (2 decimals)
 
std::string initial_count_fp
 Initial number of contracts in fixed-point (2 decimals)
 
std::string taker_fill_cost_dollars
 Taker fill cost in fixed-point dollars (6 decimals)
 
std::string maker_fill_cost_dollars
 Maker fill cost in fixed-point dollars (6 decimals)
 
std::string taker_fees_dollars
 Taker fees in fixed-point dollars (6 decimals).
 
std::string maker_fees_dollars
 Maker fees in fixed-point dollars (6 decimals).
 
std::string client_order_id
 Client-provided order identifier.
 
std::optional< std::string > order_group_id
 Order group identifier, if applicable.
 
std::optional< kalshi::SelfTradePreventionType > self_trade_prevention_type
 Self-trade prevention type.
 
std::optional< std::string > created_time
 Deprecated - Order creation time in RFC3339 format.
 
std::optional< std::string > last_update_time
 Deprecated - Last update time in RFC3339 format.
 
std::optional< std::string > expiration_time
 Deprecated - Order expiration time in RFC3339 format.
 
std::optional< std::int64_t > expiration_ts_ms
 Order expiration time as a Unix timestamp in milliseconds.
 
std::optional< std::int64_t > created_ts_ms
 Order creation time as a Unix timestamp in milliseconds.
 
std::optional< std::int64_t > last_updated_ts_ms
 Last update time as a Unix timestamp in milliseconds.
 
std::optional< std::int64_t > subaccount_number
 Subaccount number (0 for primary, 1-63 for subaccounts)
 

Detailed Description

Real-time order updates for authenticated user.

Member Data Documentation

◆ order_id

std::string kalshi::ws::UserOrder::order_id

Unique order identifier.

◆ user_id

std::string kalshi::ws::UserOrder::user_id

User identifier.

◆ ticker

std::string kalshi::ws::UserOrder::ticker

Market ticker for the order.

◆ exchange_index

std::int64_t kalshi::ws::UserOrder::exchange_index {}

Identifier for the exchange shard where the order resides.

◆ status

kalshi::OrderStatus kalshi::ws::UserOrder::status {}

Current order status.

◆ side

kalshi::Side kalshi::ws::UserOrder::side {}

Deprecated.

◆ is_yes

bool kalshi::ws::UserOrder::is_yes {}

Deprecated.

◆ outcome_side

kalshi::OutcomeSide kalshi::ws::UserOrder::outcome_side {}

The outcome side this order is positioned for.

◆ book_side

kalshi::BookSide kalshi::ws::UserOrder::book_side {}

Same directional bit as outcome_side in book vocabulary.

◆ yes_price_dollars

std::string kalshi::ws::UserOrder::yes_price_dollars

Yes price in fixed-point dollars (4 decimals)

◆ fill_count_fp

std::string kalshi::ws::UserOrder::fill_count_fp

Number of contracts filled in fixed-point (2 decimals)

◆ remaining_count_fp

std::string kalshi::ws::UserOrder::remaining_count_fp

Number of contracts remaining in fixed-point (2 decimals)

◆ initial_count_fp

std::string kalshi::ws::UserOrder::initial_count_fp

Initial number of contracts in fixed-point (2 decimals)

◆ taker_fill_cost_dollars

std::string kalshi::ws::UserOrder::taker_fill_cost_dollars

Taker fill cost in fixed-point dollars (6 decimals)

◆ maker_fill_cost_dollars

std::string kalshi::ws::UserOrder::maker_fill_cost_dollars

Maker fill cost in fixed-point dollars (6 decimals)

◆ taker_fees_dollars

std::string kalshi::ws::UserOrder::taker_fees_dollars

Taker fees in fixed-point dollars (6 decimals).

◆ maker_fees_dollars

std::string kalshi::ws::UserOrder::maker_fees_dollars

Maker fees in fixed-point dollars (6 decimals).

◆ client_order_id

std::string kalshi::ws::UserOrder::client_order_id

Client-provided order identifier.

◆ order_group_id

std::optional<std::string> kalshi::ws::UserOrder::order_group_id

Order group identifier, if applicable.

◆ self_trade_prevention_type

std::optional<kalshi::SelfTradePreventionType> kalshi::ws::UserOrder::self_trade_prevention_type

Self-trade prevention type.

◆ created_time

std::optional<std::string> kalshi::ws::UserOrder::created_time

Deprecated - Order creation time in RFC3339 format.

◆ last_update_time

std::optional<std::string> kalshi::ws::UserOrder::last_update_time

Deprecated - Last update time in RFC3339 format.

◆ expiration_time

std::optional<std::string> kalshi::ws::UserOrder::expiration_time

Deprecated - Order expiration time in RFC3339 format.

◆ expiration_ts_ms

std::optional<std::int64_t> kalshi::ws::UserOrder::expiration_ts_ms

Order expiration time as a Unix timestamp in milliseconds.

◆ created_ts_ms

std::optional<std::int64_t> kalshi::ws::UserOrder::created_ts_ms

Order creation time as a Unix timestamp in milliseconds.

◆ last_updated_ts_ms

std::optional<std::int64_t> kalshi::ws::UserOrder::last_updated_ts_ms

Last update time as a Unix timestamp in milliseconds.

◆ subaccount_number

std::optional<std::int64_t> kalshi::ws::UserOrder::subaccount_number

Subaccount number (0 for primary, 1-63 for subaccounts)


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