pub fn position(r: &PositionRecord, category: &str, now: Instant) -> Position
A position. The quantity is signed: a short position is negative.