в составном шаге RequirementsAndObligationCreationCompound сортируется сначала по времени и потом по exchangeExecutionId для избежания перемешивания сделок попавших в одну миллисекунду
This commit is contained in:
parent
a212e5a7b5
commit
54ac847b45
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ public class RequirementsAndObligationCreationCompound extends RequirementsAndOb
|
||||||
List<ExecutionCommon> executionFond = data.getExecutionsTrdt();
|
List<ExecutionCommon> executionFond = data.getExecutionsTrdt();
|
||||||
List<ExecutionCommon> executionCurrency = data.getExecutionsCurrency();
|
List<ExecutionCommon> executionCurrency = data.getExecutionsCurrency();
|
||||||
List<ExecutionCommon> executionDeposit = data.getExecutionsFinal();
|
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 efs = executionFond.size();
|
||||||
int eds = executionDeposit.size();
|
int eds = executionDeposit.size();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue