| | |
| | | subCnt = maxCnt - holdOrderEntity.getSymbolCntSale();
|
| | | }
|
| | |
|
| | | log.info("--{}, {}, {}, {}", maxCnt, subCnt, openPrice, type);
|
| | | feeAmount = feeAmount.add(holdOrderEntity.getOpeningFeeAmount());
|
| | | sku = holdOrderEntity.getSymbolSku();
|
| | | }
|
| | | BigDecimal forceSetPrice = BigDecimal.ZERO;
|
| | | if (subCnt != 0) {
|
| | | log.info("--->{}, {}, {}, {}, {}", openPrice, subCnt, sku, type, maxCnt);
|
| | | forceSetPrice = getForceSetPrice(walletContract.getTotalBalance().subtract(feeAmount), openPrice, subCnt, sku, type, memberEntity);
|
| | | }
|
| | |
|
| | |
| | |
|
| | |
|
| | | if (forceSetPrice.compareTo(BigDecimal.ZERO) > 0) {
|
| | | log.info("id:{}, type:{}, forceSetPrice:{}, symbol:{}, operateNo:{}", id, type, forceSetPrice, symbol, operateNo);
|
| | | sendOrderBombMsg(id, type, forceSetPrice, symbol, operateNo);
|
| | | }
|
| | | }
|