OptionalfeeOptionalisOptionallastOptionallockOptionalremainingCaller-calculated remainder of the order's pre-trade reservation.
The engine releases this remainder when the order's final execution report
arrives. It is not the venue-reported remaining order quantity (FIX
LeavesQty): never copy venue leaves into it, since a money-sized order's
venue leaves may be a money amount.
It is always a quantity of the instrument's underlying (base) asset, even for an order sized by volume (money), never a settlement or money amount.
For an order sized with TradeAmount.volume(...) (money), the reserved
quantity is what the engine sized during pre-trade: volume divided by the
absolute lock price, using the engine's decimal division (zero for a
drop-copy order recorded at a zero price). Do not re-derive it from unspent
volume at fill prices.
On every execution report, pass max(0, reserved quantity - sum of all fill quantities recorded for the order so far, including this report's fill).
For example, a buy sized at 1000 USD by volume with lock price 100 reserves 10 units. A partial fill of 6 passes 4 and releases nothing; a later cancel passes 4 and releases the rest of the reservation (400 USD at the lock price).
Plain-object form of ExecutionReportFillDetails.