pub fn parse_cfm_position_status_report(
position: &CfmPosition,
instrument: &InstrumentAny,
account_id: AccountId,
ts_init: UnixNanos,
) -> Result<PositionStatusReport>Expand description
Parses a single CFM position into a Nautilus [PositionStatusReport].
The position’s quantity is scaled by contract_size (expressed in the
instrument’s size precision). Callers are expected to supply the
matching instrument so precision lines up with the venue’s reported
number of contracts.
§Errors
Returns an error when the quantity or average entry price cannot be represented with the instrument’s precision.