kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
Loading...
Searching...
No Matches
rate_limit.hpp File Reference
#include "kalshi/error.hpp"
#include "kalshi/http_client.hpp"
#include <chrono>
#include <memory>
#include <mutex>
#include <optional>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

class  kalshi::TokenBucket
 Token bucket that refills continuously, the model Kalshi's rate limits use. More...
 
struct  kalshi::TokenBucket::Config
 
struct  kalshi::EndpointCostRule
 Token cost of requests matching method and path. More...
 
struct  kalshi::RateLimitConfig
 Defaults match Kalshi's Basic tier. More...
 
class  kalshi::RateLimitedTransport
 Transport decorator that paces requests to Kalshi's Read and Write budgets so they are not rejected with 429. More...
 

Namespaces

namespace  kalshi