kalshi-cpp 0.6.2
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}
 

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}

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