GasMonitorConfig

Documentation for eth_defi.gmx.gas_monitor.GasMonitorConfig Python class.

class GasMonitorConfig

Bases: object

Configuration 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_usd

critical_threshold_usd

enabled

raise_on_critical

gas_estimate_buffer

Methods summary

__init__([warning_threshold_usd, ...])

__init__(warning_threshold_usd=1.0, critical_threshold_usd=0.5, enabled=True, raise_on_critical=False, gas_estimate_buffer=1.2)
Parameters
  • warning_threshold_usd (float) –

  • critical_threshold_usd (float) –

  • enabled (bool) –

  • raise_on_critical (bool) –

  • gas_estimate_buffer (float) –

Return type

None