Polymarket_rate_limiter.StateSourceState management for rate limiting.
This module manages GCRA states for all routes, providing thread-safe access. Call cleanup explicitly to remove stale entries.
State manager for all route limits
Unique key identifying a route (e.g., "api.example.com:GET:/orders")
Create a state manager.
val check_limits :
t ->
route_key:route_key ->
limits:Types.limit_config list ->
(unit, float) resultCheck all limits for a route.