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
spec — OrderId | 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
SubmitAction— counterpart for submitsbatch_update_orders— consumer