PriceSanityException

Documentation for eth_defi.gmx.price_sanity.PriceSanityException exception.

exception PriceSanityException

Bases: ccxt.base.errors.ExchangeError

Raised when price sanity check fails and action is raise_exception.

This exception is raised when the deviation between oracle and ticker prices exceeds the configured threshold and the action is set to raise_exception.

Parameters

result – The PriceSanityCheckResult containing details about the failure

__init__(result)
Parameters

result (eth_defi.gmx.price_sanity.PriceSanityCheckResult) –

__new__(**kwargs)
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.