Expand description
T-Bank client order id codec
PostOrderRequest.order_id is the idempotency key: “в формате UID, максимальная длина 36 символов”
(orders.proto). A hyphenated UUID is exactly 36 characters, so the cid fits without loss.
The same value comes back as order_request_id in PostOrderResponse, OrderState and
OrderStateStream, and CancelOrder / GetOrderState accept it with ORDER_ID_TYPE_REQUEST.
Structs§
- Tbank
CidCodec - The client order id codec of T-Bank: the cid is sent as a hyphenated UUID.
Functions§
- parse_
request_ id order_request_idof a broker message -> our cid, if it is one.- synthetic_
cid - Stable stand-in cid for an order that was not placed by us (phone, another robot): the broker gives
no
order_request_id, butReconcileReport::foreignneeds a non-nil cid. Derived from the exchange order id (FNV-1a), never produced byUuid::new_v4.