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

#include <kalshi/models.hpp>

Public Attributes

std::string ticker
 
std::optional< std::string > client_order_id
 
Side side {}
 
Action action {}
 
std::optional< std::int64_t > count
 Order quantity in contracts (whole contracts only).
 
std::optional< FixedPointCount > count_fp
 String representation of the order quantity in contracts.
 
std::optional< std::int64_t > yes_price
 
std::optional< std::int64_t > no_price
 
std::optional< FixedPointDollars > yes_price_dollars
 Submitting price of the Yes side in fixed-point dollars.
 
std::optional< FixedPointDollars > no_price_dollars
 Submitting price of the No side in fixed-point dollars.
 
std::optional< std::int64_t > expiration_ts
 Optional Unix timestamp in seconds for when the order expires.
 
std::optional< TimeInForce > time_in_force
 Specifies how long the order remains active.
 
std::optional< std::int64_t > buy_max_cost
 Maximum cost in cents.
 
std::optional< bool > post_only
 
std::optional< bool > reduce_only
 
std::optional< std::int64_t > sell_position_floor
 Deprecated: Use reduce_only instead.
 
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
 The subaccount number to use for this order.
 
std::optional< ExchangeIndex > exchange_index
 Exchange shard index.
 

Member Data Documentation

◆ ticker

std::string kalshi::CreateOrderRequest::ticker

◆ client_order_id

std::optional<std::string> kalshi::CreateOrderRequest::client_order_id

◆ side

Side kalshi::CreateOrderRequest::side {}

◆ action

Action kalshi::CreateOrderRequest::action {}

◆ count

std::optional<std::int64_t> kalshi::CreateOrderRequest::count

Order quantity in contracts (whole contracts only).

◆ count_fp

std::optional<FixedPointCount> kalshi::CreateOrderRequest::count_fp

String representation of the order quantity in contracts.

◆ yes_price

std::optional<std::int64_t> kalshi::CreateOrderRequest::yes_price

◆ no_price

std::optional<std::int64_t> kalshi::CreateOrderRequest::no_price

◆ yes_price_dollars

std::optional<FixedPointDollars> kalshi::CreateOrderRequest::yes_price_dollars

Submitting price of the Yes side in fixed-point dollars.

◆ no_price_dollars

std::optional<FixedPointDollars> kalshi::CreateOrderRequest::no_price_dollars

Submitting price of the No side in fixed-point dollars.

◆ expiration_ts

std::optional<std::int64_t> kalshi::CreateOrderRequest::expiration_ts

Optional Unix timestamp in seconds for when the order expires.

◆ time_in_force

std::optional<TimeInForce> kalshi::CreateOrderRequest::time_in_force

Specifies how long the order remains active.

◆ buy_max_cost

std::optional<std::int64_t> kalshi::CreateOrderRequest::buy_max_cost

Maximum cost in cents.

◆ post_only

std::optional<bool> kalshi::CreateOrderRequest::post_only

◆ reduce_only

std::optional<bool> kalshi::CreateOrderRequest::reduce_only

◆ sell_position_floor

std::optional<std::int64_t> kalshi::CreateOrderRequest::sell_position_floor

Deprecated: Use reduce_only instead.

◆ self_trade_prevention_type

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

◆ order_group_id

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

The order group this order is part of.

◆ cancel_order_on_pause

std::optional<bool> kalshi::CreateOrderRequest::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

std::optional<std::int64_t> kalshi::CreateOrderRequest::subaccount

The subaccount number to use for this order.

◆ exchange_index

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

Exchange shard index.


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