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

#include <kalshi/http_client.hpp>

Static Public Member Functions

static ClientConfig for_environment (Environment environment)
 

Public Attributes

std::string base_url {rest_base_url(Environment::Production)}
 Base URL including /trade-api/v2. See rest_base_url().
 
std::chrono::milliseconds timeout {std::chrono::seconds{30}}
 Limit for the whole request, including the response body.
 
std::chrono::milliseconds connect_timeout {std::chrono::seconds{10}}
 
bool verify_ssl {true}
 
std::size_t max_response_bytes {std::size_t{64} * 1024 * 1024}
 Maximum decompressed response body; zero disables the limit.
 

Member Function Documentation

◆ for_environment()

static ClientConfig kalshi::ClientConfig::for_environment ( Environment  environment)
inlinestatic

Member Data Documentation

◆ base_url

std::string kalshi::ClientConfig::base_url {rest_base_url(Environment::Production)}

Base URL including /trade-api/v2. See rest_base_url().

◆ timeout

std::chrono::milliseconds kalshi::ClientConfig::timeout {std::chrono::seconds{30}}

Limit for the whole request, including the response body.

◆ connect_timeout

std::chrono::milliseconds kalshi::ClientConfig::connect_timeout {std::chrono::seconds{10}}

◆ verify_ssl

bool kalshi::ClientConfig::verify_ssl {true}

◆ max_response_bytes

std::size_t kalshi::ClientConfig::max_response_bytes {std::size_t{64} * 1024 * 1024}

Maximum decompressed response body; zero disables the limit.


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