ClientOrderIdRef
User-facing wrapper around a client-assigned order id. Disambiguates from OrderId at runtime.
Definition
@dataclass(frozen=True)
class ClientOrderIdRef:
value: intFields
value — int. The client-assigned order id (Uint64 on the wire).
Construction
from dango.utils.types import ClientOrderIdRef
ref = ClientOrderIdRef(value=7)Notes
- The wrapper exists because both
OrderIdandClientOrderIdreduce tostrat runtime. Without it,cancel_order(7)would be ambiguous. - Frozen — instances are hashable and immutable.
See also
cancel_order— acceptsOrderId,ClientOrderIdRef, or"all"ClientOrderId— the underlying alias