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

#include <kalshi/models.hpp>

Public Attributes

std::string fill_id
 Unique identifier for this fill.
 
ExchangeIndex exchange_index {}
 
std::string trade_id
 Unique identifier for this fill (legacy field name, same as fill_id)
 
std::string order_id
 Unique identifier for the order that resulted in this fill.
 
std::string ticker
 Unique identifier for the market.
 
std::string market_ticker
 Unique identifier for the market (legacy field name, same as ticker)
 
std::optional< Side > side
 Deprecated.
 
std::optional< Action > action
 Deprecated.
 
OutcomeSide outcome_side {}
 The outcome side this fill positioned the user for.
 
BookSide book_side {}
 Same directional bit as outcome_side in book vocabulary.
 
FixedPointCount count_fp
 String representation of the number of contracts bought or sold in this fill.
 
FixedPointDollars yes_price_dollars
 Fill price for the yes side in fixed-point dollars.
 
FixedPointDollars no_price_dollars
 Fill price for the no side in fixed-point dollars.
 
bool is_taker {}
 If true, this fill was a taker (removed liquidity from the order book)
 
std::optional< std::string > created_time
 Timestamp when this fill was executed.
 
FixedPointDollars fee_cost
 Fee cost in fixed-point dollars.
 
std::optional< std::int64_t > subaccount_number
 Subaccount number (0 for primary, 1-63 for subaccounts).
 
std::optional< std::int64_t > ts
 Unix timestamp when this fill was executed (legacy field name)
 

Member Data Documentation

◆ fill_id

std::string kalshi::Fill::fill_id

Unique identifier for this fill.

◆ exchange_index

ExchangeIndex kalshi::Fill::exchange_index {}

◆ trade_id

std::string kalshi::Fill::trade_id

Unique identifier for this fill (legacy field name, same as fill_id)

◆ order_id

std::string kalshi::Fill::order_id

Unique identifier for the order that resulted in this fill.

◆ ticker

std::string kalshi::Fill::ticker

Unique identifier for the market.

◆ market_ticker

std::string kalshi::Fill::market_ticker

Unique identifier for the market (legacy field name, same as ticker)

◆ side

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

Deprecated.

◆ action

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

Deprecated.

◆ outcome_side

OutcomeSide kalshi::Fill::outcome_side {}

The outcome side this fill positioned the user for.

◆ book_side

BookSide kalshi::Fill::book_side {}

Same directional bit as outcome_side in book vocabulary.

◆ count_fp

FixedPointCount kalshi::Fill::count_fp

String representation of the number of contracts bought or sold in this fill.

◆ yes_price_dollars

FixedPointDollars kalshi::Fill::yes_price_dollars

Fill price for the yes side in fixed-point dollars.

◆ no_price_dollars

FixedPointDollars kalshi::Fill::no_price_dollars

Fill price for the no side in fixed-point dollars.

◆ is_taker

bool kalshi::Fill::is_taker {}

If true, this fill was a taker (removed liquidity from the order book)

◆ created_time

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

Timestamp when this fill was executed.

◆ fee_cost

FixedPointDollars kalshi::Fill::fee_cost

Fee cost in fixed-point dollars.

◆ subaccount_number

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

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

◆ ts

std::optional<std::int64_t> kalshi::Fill::ts

Unix timestamp when this fill was executed (legacy field name)


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