PriceSanityCheckConfig

Documentation for eth_defi.gmx.price_sanity.PriceSanityCheckConfig Python class.

class PriceSanityCheckConfig

Bases: object

Configuration for price sanity checks.

Attributes summary

enabled

Whether price sanity checks are enabled

threshold_percent

Deviation threshold as decimal (0.03 = 3%)

action

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
Return type

None