GasMonitorConfig
Documentation for eth_defi.gmx.gas_monitor.GasMonitorConfig Python class.
- class GasMonitorConfig
Bases:
objectConfiguration for gas monitoring.
- Parameters
warning_threshold_usd – Balance threshold (USD) below which a warning is logged
critical_threshold_usd – Balance threshold (USD) below which trades may be rejected
enabled – Whether gas monitoring is active
raise_on_critical – If True, raise exception on critical; if False, return failed result
gas_estimate_buffer – Multiplier applied to gas estimates (e.g., 1.2 = 20% buffer)
Attributes summary
warning_threshold_usdcritical_threshold_usdenabledraise_on_criticalgas_estimate_bufferMethods summary
__init__([warning_threshold_usd, ...])