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

An error frame from the server, or a problem the client found itself. More...

#include <kalshi/websocket.hpp>

Public Attributes

std::int64_t code {0}
 Kalshi's error code (see ws::error_code_name), or 0 for a client error.
 
std::string message
 
std::optional< std::int64_t > id
 The command that failed, when the server names one.
 
std::optional< std::int64_t > sid
 
std::optional< std::int64_t > seq
 
std::optional< ws::Subscription > subscription
 The subscription the error concerns, when known.
 

Detailed Description

An error frame from the server, or a problem the client found itself.

Member Data Documentation

◆ code

std::int64_t kalshi::WsError::code {0}

Kalshi's error code (see ws::error_code_name), or 0 for a client error.

◆ message

std::string kalshi::WsError::message

◆ id

std::optional<std::int64_t> kalshi::WsError::id

The command that failed, when the server names one.

◆ sid

std::optional<std::int64_t> kalshi::WsError::sid

◆ seq

std::optional<std::int64_t> kalshi::WsError::seq

◆ subscription

std::optional<ws::Subscription> kalshi::WsError::subscription

The subscription the error concerns, when known.


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