| | |
| | | } |
| | | } |
| | | |
| | | BigDecimal ordFroz = WsMapBuild.parseBigDecimalSafe(AccountWs.ACCOUNTWSMAP.get("ordFroz")); |
| | | if (BigDecimal.ZERO.compareTo( ordFroz) >= 0) { |
| | | BigDecimal ordFrozImr = WsMapBuild.parseBigDecimalSafe(AccountWs.ACCOUNTWSMAP.get("imr")); |
| | | if (BigDecimal.ZERO.compareTo( ordFrozImr) >= 0) { |
| | | log.error("占用保证金为零,进行初始化订单"); |
| | | return OrderParamEnums.INIT.getValue(); |
| | | } |
| | | // 判断是否保证金超标 |
| | | BigDecimal totalOrderUsdt = WsMapBuild.parseBigDecimalSafe(CoinEnums.TOTAL_ORDER_USDT.name()); |
| | | if (ordFroz.compareTo(totalOrderUsdt) >= 0){ |
| | | if (ordFrozImr.compareTo(totalOrderUsdt) >= 0){ |
| | | log.error("已满仓......"); |
| | | return OrderParamEnums.HOLDING.getValue(); |
| | | } |