PriceSanityAction

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

class PriceSanityAction

Bases: enum.Enum

Actions to take when price deviation exceeds threshold.

Attributes summary

use_oracle_warn

Use oracle price and log warning

use_ticker_warn

Use ticker price and log warning

raise_exception

Raise PriceSanityException to block the operation

use_oracle_warn = 'use_oracle_warn'

Use oracle price and log warning

use_ticker_warn = 'use_ticker_warn'

Use ticker price and log warning

raise_exception = 'raise_exception'

Raise PriceSanityException to block the operation