This commit is contained in:
parent
7f4d63a396
commit
52cc049c33
1 changed files with 1 additions and 0 deletions
|
|
@ -281,6 +281,7 @@ public class OrderCurrencyListener extends QueueConsumer implements Initializing
|
|||
swap.setOvernightType(OvernightType.SWAP.getKey());
|
||||
swap.setMarket(market.getCode());
|
||||
swap.setPrice(safeBD(spotT1.getPrice()).subtract(safeBD(spotT0.getPrice())));
|
||||
swap.setBasePrice(safeBD(spotT1.getBasePrice()));
|
||||
swap.setCreated(Instant.now());
|
||||
return swap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue