pub fn apply_option_deposit_to_positions(
positions: &mut HashMap<(WalletAddress, String), EnginePosition>,
wallet: WalletAddress,
symbol: String,
quantity: Decimal,
)Expand description
Credit externally deposited option-token inventory into engine positions.
This is deliberately not modeled as a zero-price fill. Depositing tokens moves already-owned inventory into HyperCall custody; it must not realize PnL, change cash, or rewrite the cost basis of an existing same-side position. If a deposit crosses a short through zero, the newly long remainder has unknown off-chain cost basis, so the engine records zero.