PriceSanityCheckConfig
Documentation for eth_defi.gmx.price_sanity.PriceSanityCheckConfig Python class.
- class PriceSanityCheckConfig
Bases:
objectConfiguration for price sanity checks.
Attributes summary
Whether price sanity checks are enabled
Deviation threshold as decimal (0.03 = 3%)
Action to take when deviation exceeds threshold
Methods summary
__init__([enabled, threshold_percent, action])- enabled: bool
Whether price sanity checks are enabled
- threshold_percent: float
Deviation threshold as decimal (0.03 = 3%)
- action: eth_defi.gmx.price_sanity.PriceSanityAction
Action to take when deviation exceeds threshold
- __init__(enabled=True, threshold_percent=0.03, action=PriceSanityAction.use_oracle_warn)
- Parameters
enabled (bool) –
threshold_percent (float) –
action (eth_defi.gmx.price_sanity.PriceSanityAction) –
- Return type
None