Skip to main content

position

Function position 

Source
pub fn position(r: &PositionRecord, board: &str, now: Instant) -> Position
Expand description

A position in an instrument. board is the trading mode of the instrument (the broker does not name it in a position, the connector looks it up). The quantity is in pieces and signed. The average price is None when the broker gives none or zero (futures).