pub fn state_of(
status: Option<&str>,
cid: ClientOrderId,
broker_id: &str,
qty: Qty,
filled: Qty,
) -> OrderStateExpand description
The state of an order from the status of the broker and the quantities.
status | State |
|---|---|
working, nothing filled | Acked |
working, partly filled | PartiallyFilled |
filled | Filled |
canceled | Cancelled |
rejected | Rejected |
| anything else (new words of the broker) | Acked, a working order: the safe reading, the bot must not place a second one in its stead |