GMXRetryConfig
Documentation for eth_defi.gmx.retry.GMXRetryConfig Python class.
- class GMXRetryConfig
Bases:
objectConfiguration for GMX API retry and failover behaviour.
Controls how aggressively the GMX API client retries failed requests across multiple endpoints. Production defaults are tuned for reliability; tests should use
get_test_retry_config()for faster feedback.# Production (default) config = GMXRetryConfig() # Fast-fail for tests config = GMXRetryConfig.create_test_config()
Attributes summary
max_retriesinitial_delaymax_delaybackoff_multiplierfull_cycle_retriesMethods summary
__init__([max_retries, initial_delay, ...])Create a retry config tuned for fast test feedback.
- __init__(max_retries=3, initial_delay=2.0, max_delay=30.0, backoff_multiplier=2.0, full_cycle_retries=2)
- classmethod create_test_config()
Create a retry config tuned for fast test feedback.
Reduces retries and delays so tests fail quickly instead of burning minutes on unreachable API endpoints.
- Return type