ClientOrderId
A client-assigned order id. NewType("ClientOrderId", str) — at runtime it is a plain str (encoding a Uint64).
Definition
ClientOrderId = NewType("ClientOrderId", str)Construction
from dango.utils.types import ClientOrderId
cid = ClientOrderId("7")Notes
- Submit a limit order with
client_order_id=Nto bind a client-side id. Later cancel viacancel_order(ClientOrderIdRef(value=N)). - The wire form is the integer's base-10 string. For Python-side construction at call sites, use
ClientOrderIdRef— it carries anintand the wrapper makes the cancel intent unambiguous.
See also
ClientOrderIdRef— user-facing wrappersubmit_limit_order— accepts aclient_order_id