fn calculate_realized_pnl(
position: Option<FillAccountingPosition>,
side: Side,
fill_price: Decimal,
fill_quantity: Decimal,
) -> Decimalfn calculate_realized_pnl(
position: Option<FillAccountingPosition>,
side: Side,
fill_price: Decimal,
fill_quantity: Decimal,
) -> Decimal