Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

ConditionalOrderRef

User-facing form of a single conditional-order cancel target.

Definition

@dataclass(frozen=True)
class ConditionalOrderRef:
    pair_id: PairId
    trigger_direction: TriggerDirection

Fields

pair_idPairId.

trigger_directionTriggerDirection.

Construction

from dango.utils.types import ConditionalOrderRef, PairId, TriggerDirection
 
ref = ConditionalOrderRef(pair_id=PairId("perp/ethusd"), trigger_direction=TriggerDirection.ABOVE)

Notes

  • A user holds at most one conditional order per (pair_id, trigger_direction) combination, so this tuple uniquely identifies the cancel target.

See also