pub async fn duplicate_place<U: OrderExecutor + ?Sized>(
ud: &U,
id: &InstrumentId,
price: Price,
)Expand description
A cid is used for one place at most: the second place with it is refused locally and creates nothing.
Steps and checks:
placea buy limit order of one lot atpriceunder a fresh cid. It succeeds.placewith the same cid again: [Error::Rejected] with codeduplicate_place, notOkand notUnknown. Nothing was sent, so the broker holds one order of that cid.- Cancel the order.
The command gate must be open, so call reconcile first.
§Panics
With [conformance:duplicate_place] <reason>.