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

Public trade information. More...

#include <kalshi/ws_models.hpp>

Public Attributes

std::string trade_id
 Unique identifier for the trade.
 
std::string market_ticker
 Unique market identifier.
 
std::string yes_price_dollars
 Yes side price in dollars.
 
std::string no_price_dollars
 No side price in dollars.
 
std::string count_fp
 Fixed-point contracts traded (2 decimals)
 
kalshi::Side taker_side {}
 Deprecated.
 
kalshi::OutcomeSide taker_outcome_side {}
 The outcome side the taker is positioned for.
 
kalshi::BookSide taker_book_side {}
 Same directional bit as taker_outcome_side in book vocabulary.
 
bool is_block_trade {}
 True if the trade was matched off book as a block trade.
 
std::int64_t ts {}
 Deprecated - Unix timestamp in seconds.
 
std::int64_t ts_ms {}
 Unix timestamp in milliseconds.
 

Detailed Description

Public trade information.

Member Data Documentation

◆ trade_id

std::string kalshi::ws::Trade::trade_id

Unique identifier for the trade.

◆ market_ticker

std::string kalshi::ws::Trade::market_ticker

Unique market identifier.

◆ yes_price_dollars

std::string kalshi::ws::Trade::yes_price_dollars

Yes side price in dollars.

◆ no_price_dollars

std::string kalshi::ws::Trade::no_price_dollars

No side price in dollars.

◆ count_fp

std::string kalshi::ws::Trade::count_fp

Fixed-point contracts traded (2 decimals)

◆ taker_side

kalshi::Side kalshi::ws::Trade::taker_side {}

Deprecated.

◆ taker_outcome_side

kalshi::OutcomeSide kalshi::ws::Trade::taker_outcome_side {}

The outcome side the taker is positioned for.

◆ taker_book_side

kalshi::BookSide kalshi::ws::Trade::taker_book_side {}

Same directional bit as taker_outcome_side in book vocabulary.

◆ is_block_trade

bool kalshi::ws::Trade::is_block_trade {}

True if the trade was matched off book as a block trade.

◆ ts

std::int64_t kalshi::ws::Trade::ts {}

Deprecated - Unix timestamp in seconds.

◆ ts_ms

std::int64_t kalshi::ws::Trade::ts_ms {}

Unix timestamp in milliseconds.


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