pub fn parse_spot_position_status_report(
balance: &SpotBalance,
instrument: &dyn Instrument,
account_id: AccountId,
ts_init: UnixNanos,
) -> Result<PositionStatusReport>Expand description
Parse a spot token balance into a [PositionStatusReport] against the spot instrument.
Spot holdings are always Long (Hyperliquid spot has no short exposure). The average
entry price is derived from entry_ntl / total when both are non-zero; otherwise it
is omitted.
§Errors
Returns an error if the quantity cannot be constructed at the instrument’s precision.