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

CancelAction

User-facing form of a cancel request. Pass to batch_update_orders.

Definition

@dataclass(frozen=True)
class CancelAction:
    spec: OrderId | ClientOrderIdRef | Literal["all"]

Fields

specOrderId | ClientOrderIdRef | Literal["all"]. The cancel target. See cancel_order for the same parameter shape.

Construction

from dango.utils.types import CancelAction, ClientOrderIdRef, OrderId
 
a = CancelAction(spec=OrderId("12345"))
b = CancelAction(spec=ClientOrderIdRef(value=7))
c = CancelAction(spec="all")

See also