Quant.Explorer.RateLimiting.ProviderConfig (quant v0.1.0-alpha.1)
Provider-specific rate limiting configurations.
This module contains rate limiting configurations tailored to specific financial data providers, handling their unique requirements and patterns.
Summary
Functions
Calculates the appropriate weight for a Binance request based on parameters.
Gets the rate limiting configuration for a specific provider endpoint.
Gets adjusted limits for premium/pro tiers.
Gets the rate limiting configuration for a specific provider.
Determines if a request should use a higher tier configuration.
Functions
@spec calculate_binance_weight( atom(), keyword() ) :: pos_integer()
Calculates the appropriate weight for a Binance request based on parameters.
Different Binance endpoints have different weight calculations:
- Single symbol requests: weight 1
- All symbols requests: weight 40+
- Depth with limit: weight based on limit parameter
@spec get_endpoint_config(atom(), atom() | String.t()) :: Quant.Explorer.RateLimiting.Behaviour.limit_config()
Gets the rate limiting configuration for a specific provider endpoint.
@spec get_provider_config(atom()) :: [ Quant.Explorer.RateLimiting.Behaviour.limit_config() ]
Gets the rate limiting configuration for a specific provider.