Expand description
Module containing rate limiting functionality to manage API request frequency
Structs§
- Rate
Limiter - Advanced rate limiter for API calls that maintains a request history
- Rate
Limiter Stats - Statistics about the rate limiter usage
Enums§
- Rate
Limit Type - Rate limiter type for different API endpoints with their respective limits
Functions§
- account_
non_ trading_ limiter - Global rate limiter for non-trading account requests (30 per minute)
- account_
trading_ limiter - Global rate limiter for trading account requests (100 per minute)
- app_
non_ trading_ limiter - Global rate limiter for non-trading app requests (60 per minute)
- create_
rate_ limiter - Creates a rate limiter with the specified type
- global_
rate_ limiter - Default global rate limiter (uses the most conservative limit: non-trading account)
- historical_
price_ limiter - Global rate limiter for historical price data requests (10,000 points per week)
- one_
per_ second_ limiter - Global rate limiter for one request per second