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

#include <kalshi/error.hpp>

Static Public Member Functions

static Error network (std::string msg)
 
static Error auth (std::string msg)
 
static Error parse (std::string msg)
 
static Error signing (std::string msg)
 

Public Attributes

ErrorCode code {ErrorCode::Unknown}
 
std::string message
 
int http_status {0}
 HTTP status when the server answered; 0 otherwise.
 
std::string api_code
 Kalshi's machine-readable error code, such as "market_not_found", when sent.
 

Member Function Documentation

◆ network()

static Error kalshi::Error::network ( std::string  msg)
inlinestatic

◆ auth()

static Error kalshi::Error::auth ( std::string  msg)
inlinestatic

◆ parse()

static Error kalshi::Error::parse ( std::string  msg)
inlinestatic

◆ signing()

static Error kalshi::Error::signing ( std::string  msg)
inlinestatic

Member Data Documentation

◆ code

ErrorCode kalshi::Error::code {ErrorCode::Unknown}

◆ message

std::string kalshi::Error::message

◆ http_status

int kalshi::Error::http_status {0}

HTTP status when the server answered; 0 otherwise.

◆ api_code

std::string kalshi::Error::api_code

Kalshi's machine-readable error code, such as "market_not_found", when sent.


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