pub fn state(p: &OrderParts, cid: ClientOrderId, now: Instant) -> OrderStateExpand description
The order state of a status report.
Fill, cancel, reject, new and partial fill map to their states. Partial fill carries filled and
left in units of the instrument. An unspecified status is Unknown, never a guess. A rejection without a reason
gets the text REJECTED.