Function snapshot
pub fn snapshot(
r: &StopOrderRecord,
cid: Option<Uuid>,
now: Instant,
) -> Option<StopOrderSnapshot>Expand description
A stop order of the portfolio as a snapshot. The cid is the one the connector found (None if the order is
not ours). None if the record lacks the side, the quantity or the trigger price.