ExecutionFond settlementAmount valuation for EQTY
This commit is contained in:
parent
673bb48938
commit
4e78439e54
1 changed files with 2 additions and 1 deletions
|
|
@ -257,7 +257,8 @@ public class ExecutionFondComponent {
|
||||||
.setScale(2, RoundingMode.HALF_UP);
|
.setScale(2, RoundingMode.HALF_UP);
|
||||||
}
|
}
|
||||||
} else if (InstrumentType.EQTY.equalsByKey(security.getInstrumentType())) {
|
} else if (InstrumentType.EQTY.equalsByKey(security.getInstrumentType())) {
|
||||||
settlementAmount = lots.multiply(price).setScale(2, RoundingMode.HALF_UP);
|
BigDecimal lotsEqty = safeBD(eFond.getQuantity());
|
||||||
|
settlementAmount = lotsEqty.multiply(price).setScale(2, RoundingMode.HALF_UP);
|
||||||
}
|
}
|
||||||
eFond.setSettlementAmount(settlementAmount);
|
eFond.setSettlementAmount(settlementAmount);
|
||||||
if (settlementAmount.compareTo(safeBD(sTrades.getValue())) != 0) {
|
if (settlementAmount.compareTo(safeBD(sTrades.getValue())) != 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue