Skip to main content

state

Function state 

pub fn state(p: &OrderParts, cid: Uuid, now: Instant) -> OrderState
Expand 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.