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

#include <kalshi/models.hpp>

Public Attributes

std::string ticker
 
std::optional< std::string > client_order_id
 
BookSide side {}
 
FixedPointCount count
 String representation of the order quantity in contracts.
 
FixedPointDollars price
 Price for the order in fixed-point dollars.
 
std::optional< std::int64_t > expiration_time
 Optional Unix timestamp in seconds for when the order expires.
 
TimeInForce time_in_force {}
 Specifies how long the order remains active.
 
std::optional< bool > post_only
 
SelfTradePreventionType self_trade_prevention_type {}
 
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< bool > reduce_only
 Specifies whether the order place count should be capped by the member's current position.
 
std::optional< std::int64_t > subaccount
 The subaccount number to use for this order.
 
std::optional< std::string > order_group_id
 The order group this order is part of.
 
std::optional< ExchangeIndex > exchange_index
 Exchange shard index.
 

Member Data Documentation

◆ ticker

std::string kalshi::CreateOrderV2Request::ticker

◆ client_order_id

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

◆ side

BookSide kalshi::CreateOrderV2Request::side {}

◆ count

FixedPointCount kalshi::CreateOrderV2Request::count

String representation of the order quantity in contracts.

◆ price

FixedPointDollars kalshi::CreateOrderV2Request::price

Price for the order in fixed-point dollars.

◆ expiration_time

std::optional<std::int64_t> kalshi::CreateOrderV2Request::expiration_time

Optional Unix timestamp in seconds for when the order expires.

◆ time_in_force

TimeInForce kalshi::CreateOrderV2Request::time_in_force {}

Specifies how long the order remains active.

◆ post_only

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

◆ self_trade_prevention_type

SelfTradePreventionType kalshi::CreateOrderV2Request::self_trade_prevention_type {}

◆ cancel_order_on_pause

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

◆ reduce_only

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

Specifies whether the order place count should be capped by the member's current position.

◆ subaccount

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

The subaccount number to use for this order.

◆ order_group_id

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

The order group this order is part of.

◆ exchange_index

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

Exchange shard index.


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