kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
Loading...
Searching...
No Matches
kalshi::ws::Update< T > Struct Template Reference

One data frame. msg holds the channel's payload. More...

#include <kalshi/ws_models.hpp>

Public Attributes

std::int64_t sid {0}
 The server's subscription ID, which changes after a reconnect.
 
std::optional< std::int64_t > seq
 Present on sequenced channels. The client checks it for gaps.
 
std::optional< std::int64_t > id
 The command that asked for this frame, such as a get_snapshot.
 
std::int64_t subscription {0}
 Subscription::id of the subscription that produced the frame.
 
T msg
 

Detailed Description

template<typename T>
struct kalshi::ws::Update< T >

One data frame. msg holds the channel's payload.

Member Data Documentation

◆ sid

template<typename T >
std::int64_t kalshi::ws::Update< T >::sid {0}

The server's subscription ID, which changes after a reconnect.

◆ seq

template<typename T >
std::optional<std::int64_t> kalshi::ws::Update< T >::seq

Present on sequenced channels. The client checks it for gaps.

◆ id

template<typename T >
std::optional<std::int64_t> kalshi::ws::Update< T >::id

The command that asked for this frame, such as a get_snapshot.

◆ subscription

template<typename T >
std::int64_t kalshi::ws::Update< T >::subscription {0}

Subscription::id of the subscription that produced the frame.

◆ msg

template<typename T >
T kalshi::ws::Update< T >::msg

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