18.3 - Mark to Market- Partially price contract Contract futures calculation is wrong

Issue No: RM-2915
Created 5/6/2019 7:22:33 AM
Type Bug
Priority Major
Status Closed
Resolution Fixed
Fixed Version 18.3
Description STEPS   Create a contract for 640 * 60 kg bag   Price the contract for 1 lot= 125 c/lb   Settlement price foir DEC 18= 108.95   Issue   Load the Mark to market   Check the contract futures   and Net pnl   ISSUE   Contract future is shwoing wrong value and it is not considering the weighted average for the future price   in this case   ((Fixed lot(1) * Fixed price ( 125*22.0462) )+ (Unfixed lot (1) * (settlement price ( 108.95*22.0462))/2( total number of lots)=2578.85     Acceptance   It should calcualte the weighted average when the contract is partially priced