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

#include <kalshi/models.hpp>

Public Attributes

std::string order_id
 
std::string user_id
 Unique identifier for users.
 
std::string client_order_id
 
std::string ticker
 
std::optional< Side > side
 Deprecated.
 
std::optional< Action > action
 Deprecated.
 
OutcomeSide outcome_side {}
 The outcome side this order is positioned for.
 
BookSide book_side {}
 Same directional bit as outcome_side in book vocabulary.
 
OrderType type {}
 
OrderStatus status {}
 
FixedPointDollars yes_price_dollars
 The yes price for this order in fixed-point dollars.
 
FixedPointDollars no_price_dollars
 The no price for this order in fixed-point dollars.
 
FixedPointCount fill_count_fp
 String representation of the number of contracts that have been filled.
 
FixedPointCount remaining_count_fp
 String representation of the remaining contracts for this order.
 
FixedPointCount initial_count_fp
 String representation of the initial size of the order (contract units)
 
FixedPointDollars taker_fill_cost_dollars
 The cost of filled taker orders in dollars.
 
FixedPointDollars maker_fill_cost_dollars
 The cost of filled maker orders in dollars.
 
FixedPointDollars taker_fees_dollars
 Fees paid on filled taker contracts, in dollars.
 
FixedPointDollars maker_fees_dollars
 Fees paid on filled maker contracts, in dollars.
 
std::optional< std::string > expiration_time
 
std::optional< std::string > created_time
 
std::optional< std::string > last_update_time
 The last update to an order (modify, cancel, fill)
 
std::optional< SelfTradePreventionType > self_trade_prevention_type
 
std::optional< std::string > order_group_id
 The order group this order is part of.
 
std::optional< bool > cancel_order_on_pause
 If this flag is set to true, the order will be canceled if the order is open and trading on the exchange is paused for any reason.
 
std::optional< std::int64_t > subaccount_number
 Subaccount number (0 for primary, 1-63 for subaccounts).
 
std::optional< ExchangeIndex > exchange_index
 

Member Data Documentation

◆ order_id

std::string kalshi::Order::order_id

◆ user_id

std::string kalshi::Order::user_id

Unique identifier for users.

◆ client_order_id

std::string kalshi::Order::client_order_id

◆ ticker

std::string kalshi::Order::ticker

◆ side

std::optional<Side> kalshi::Order::side

Deprecated.

◆ action

std::optional<Action> kalshi::Order::action

Deprecated.

◆ outcome_side

OutcomeSide kalshi::Order::outcome_side {}

The outcome side this order is positioned for.

◆ book_side

BookSide kalshi::Order::book_side {}

Same directional bit as outcome_side in book vocabulary.

◆ type

OrderType kalshi::Order::type {}

◆ status

OrderStatus kalshi::Order::status {}

◆ yes_price_dollars

FixedPointDollars kalshi::Order::yes_price_dollars

The yes price for this order in fixed-point dollars.

◆ no_price_dollars

FixedPointDollars kalshi::Order::no_price_dollars

The no price for this order in fixed-point dollars.

◆ fill_count_fp

FixedPointCount kalshi::Order::fill_count_fp

String representation of the number of contracts that have been filled.

◆ remaining_count_fp

FixedPointCount kalshi::Order::remaining_count_fp

String representation of the remaining contracts for this order.

◆ initial_count_fp

FixedPointCount kalshi::Order::initial_count_fp

String representation of the initial size of the order (contract units)

◆ taker_fill_cost_dollars

FixedPointDollars kalshi::Order::taker_fill_cost_dollars

The cost of filled taker orders in dollars.

◆ maker_fill_cost_dollars

FixedPointDollars kalshi::Order::maker_fill_cost_dollars

The cost of filled maker orders in dollars.

◆ taker_fees_dollars

FixedPointDollars kalshi::Order::taker_fees_dollars

Fees paid on filled taker contracts, in dollars.

◆ maker_fees_dollars

FixedPointDollars kalshi::Order::maker_fees_dollars

Fees paid on filled maker contracts, in dollars.

◆ expiration_time

std::optional<std::string> kalshi::Order::expiration_time

◆ created_time

std::optional<std::string> kalshi::Order::created_time

◆ last_update_time

std::optional<std::string> kalshi::Order::last_update_time

The last update to an order (modify, cancel, fill)

◆ self_trade_prevention_type

std::optional<SelfTradePreventionType> kalshi::Order::self_trade_prevention_type

◆ order_group_id

std::optional<std::string> kalshi::Order::order_group_id

The order group this order is part of.

◆ cancel_order_on_pause

std::optional<bool> kalshi::Order::cancel_order_on_pause

If this flag is set to true, the order will be canceled if the order is open and trading on the exchange is paused for any reason.

◆ subaccount_number

std::optional<std::int64_t> kalshi::Order::subaccount_number

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

◆ exchange_index

std::optional<ExchangeIndex> kalshi::Order::exchange_index

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