в составном шаге RequirementsAndObligationCreationCompound сортируется сначала по времени и потом по exchangeExecutionId для избежания перемешивания сделок попавших в одну миллисекунду

This commit is contained in:
ialbert 2024-07-02 19:39:18 +03:00
parent a212e5a7b5
commit 54ac847b45

View file

@ -55,7 +55,7 @@ public class RequirementsAndObligationCreationCompound extends RequirementsAndOb
List<ExecutionCommon> executionFond = data.getExecutionsTrdt();
List<ExecutionCommon> executionCurrency = data.getExecutionsCurrency();
List<ExecutionCommon> executionDeposit = data.getExecutionsFinal();
Stream.of(executionFond, executionCurrency, executionDeposit).forEach(c -> c.sort(tradeTimeComparator));
Stream.of(executionFond, executionCurrency, executionDeposit).forEach(c -> c.sort(tradeTimeComparator.thenComparing(execIdComparator)));
int efs = executionFond.size();
int eds = executionDeposit.size();