Module rate_limits

Module rate_limits 

Source

Structs§

RateLimitSnapshot
WeightedLimiter

Functions§

backoff_full_jitter
exchange_weight
Exchange: 1 + floor(batch_len / 40)
info_base_weight
Classify Info requests into weight classes based on request_type. Since InfoRequest uses struct with request_type string, we match on that.
info_extra_weight
Extra weight for heavy Info endpoints: +1 per 20 (most), +1 per 60 for candleSnapshot. We count the largest array in the response (robust to schema variants).