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