privamr
This commit is contained in:
parent
989dcdec73
commit
e3352e6fdf
1 changed files with 2 additions and 4 deletions
|
|
@ -98,15 +98,13 @@ public class RegistryDepoBuilder implements IRegistryBuilder {
|
|||
boolean isTSelling = regDsgn.equals(RegistryDesignation.T) && side.isSell();
|
||||
boolean isTBuying = regDsgn.equals(RegistryDesignation.T) && side.isBuy();
|
||||
|
||||
if ((isOBuying || isTSelling) && !secondLeg ||
|
||||
(isOSelling || isTBuying) && secondLeg) {
|
||||
if ((isOBuying || isTSelling) && !secondLeg || (isOSelling || isTBuying) && secondLeg) {
|
||||
reg.setRegistryInstrumentType(RegistryInstrumentType.M.getKey());
|
||||
reg.setBalanceDimension(BalanceDimension.MONY.getKey());
|
||||
Currency currency = currencyImdg.getSingleObjectByFieldValues(Map.of("currencyCode", exec.getSettlementCurrency()));
|
||||
reg.setSecurityId(currency.getId());
|
||||
reg.setSecuritySymbol(currency.getCurrencyCode());
|
||||
} else if ((isOSelling || isTBuying) && !secondLeg ||
|
||||
(isOBuying || isTSelling) && secondLeg) {
|
||||
} else {
|
||||
reg.setRegistryInstrumentType(RegistryInstrumentType.S.getKey());
|
||||
reg.setBalanceDimension(BalanceDimension.PICS.getKey());
|
||||
reg.setSecurityId(exec.getSecurityId());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue