|
kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
|
#include "kalshi/error.hpp"#include "kalshi/http_client.hpp"#include <chrono>#include <cstdint>#include <memory>#include <string_view>Go to the source code of this file.
Classes | |
| struct | kalshi::RetryPolicy |
| class | kalshi::RetryingTransport |
| Transport decorator that retries transient failures with exponential backoff. More... | |
Namespaces | |
| namespace | kalshi |
Functions | |
| bool | kalshi::should_retry (HttpMethod method, const HttpResponse &response, const RetryPolicy &policy) noexcept |
| bool | kalshi::should_retry (HttpMethod method, const Error &error, const RetryPolicy &policy) noexcept |
| std::chrono::milliseconds | kalshi::retry_delay (std::uint8_t attempt, const RetryPolicy &policy) |
Backoff before the attempt after attempt (1-based), with jitter applied. | |