ReasonForOrderRemoval
Reason carried on OrderRemoved / ConditionalOrderRemoved events.
Definition
class ReasonForOrderRemoval(StrEnum):
FILLED = "filled"
CANCELED = "canceled"
POSITION_CLOSED = "position_closed"
SELF_TRADE_PREVENTION = "self_trade_prevention"
LIQUIDATED = "liquidated"
DELEVERAGED = "deleveraged"
SLIPPAGE_EXCEEDED = "slippage_exceeded"
PRICE_BAND_VIOLATION = "price_band_violation"
SLIPPAGE_CAP_TIGHTENED = "slippage_cap_tightened"Construction
from dango.utils.types import ReasonForOrderRemoval
reason = ReasonForOrderRemoval.FILLEDNotes
- Wire form is lowercase snake_case (Rust serde convention).
See also
OrderRemoved— event that carries this enum