|
kalshi-cpp 0.8.0
C++23 client for Kalshi's Predictions API
|
#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. | |
|
inlinestatic |
| std::string kalshi::ClientConfig::base_url {rest_base_url(Environment::Production)} |
Base URL including /trade-api/v2. See rest_base_url().
| std::chrono::milliseconds kalshi::ClientConfig::timeout {std::chrono::seconds{30}} |
Limit for the whole request, including the response body.
| std::chrono::milliseconds kalshi::ClientConfig::connect_timeout {std::chrono::seconds{10}} |
| bool kalshi::ClientConfig::verify_ssl {true} |
| std::size_t kalshi::ClientConfig::max_response_bytes {std::size_t{64} * 1024 * 1024} |
Maximum decompressed response body; zero disables the limit.