This commit is contained in:
parent
e94f56a5a1
commit
90edd763f5
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ public class OrderCalculationService {
|
|||
|
||||
private BigDecimal swapPriceCalc(String baseCurrency, BigDecimal s, BigDecimal n, int precision) {
|
||||
Rates rate = imdgQueryService.getRate(baseCurrency, LocalDate.now());
|
||||
BigDecimal p = BigDecimal.ONE.divide(n, MC);
|
||||
BigDecimal p = n.divide(BigDecimal.valueOf(365), MC);
|
||||
log.info("Calculation swap price: {}*{}*{}", s, n, p);
|
||||
return rate.getValue()
|
||||
.multiply(s, MC)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue