Expand description
Rate limiting utilities Common rate limit handling for Binance API
Enums§
- Binance
Error - Binance-specific error types for rate limiting
Constants§
- BINANCE_
RATE_ LIMITS - Rate limits for Binance API These rate limits are shared between API endpoints Converted to const array for compile-time evaluation
Functions§
- extract_
retry_ after - Extract Retry-After header value from response headers
- handle_
rate_ limit_ error - Handle rate limit errors based on HTTP status code and headers
- parse_
order_ count_ headers - Parse order count headers from Binance response Headers are in format: X-MBX-ORDER-COUNT-{interval} where interval can be 1S, 10S, 1M, 1H, 1D
- parse_
used_ weight_ headers - Parse used weight headers from Binance response