We have observed several stability, correctness, and API deficiencies in the core trading engine components…
We have observed several stability, correctness, and API deficiencies in the core trading engine components…: a task in LegoFlow-SWE (Harbor dataset). Observed symptom : getRealizedPnl() and getTotalRealizedPnl() currently return double , leading to arithmetic imprecision and mismatches with other…
The task
**Observed symptom**: `getRealizedPnl()` and `getTotalRealizedPnl()` currently return `double`, leading to arithmetic imprecision and mismatches with other components that use fixed-point types. The internal position and price fields should be stored as fixed-point `Quantity` and `Price`, not `double`.
Part of Lego-X/LegoFlow-SWE.