kraken_async_rs/rate_limiting/
mod.rs

1//! Implementations of common rate limiting schemes required for using Kraken's API effectively
2//!
3//! Throughout, Kraken utilizes floating-point rate limit values, but this implementation uses integers
4//! that are scaled appropriately. I.e. if the Kraken docs specify a cost of 1.0, it will cost 100
5//! in this scheme, and a replenishment rate of 2.34/s in the docs will be 234/s here.
6//!
7//! This was a simplification that allowed using Semaphore permits as the core rate limiting concept
8//! under the hood.
9pub mod keyed_rate_limits;
10pub mod trading_rate_limits;
11pub mod ttl_cache;