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

ClientOrderIdRef

User-facing wrapper around a client-assigned order id. Disambiguates from OrderId at runtime.

Definition

@dataclass(frozen=True)
class ClientOrderIdRef:
    value: int

Fields

valueint. 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 OrderId and ClientOrderId reduce to str at runtime. Without it, cancel_order(7) would be ambiguous.
  • Frozen — instances are hashable and immutable.

See also