| | |
| | | earnings = earnings.add(order.getDepositOpen()); |
| | | } else { |
| | | // 如果不符合条件,直接使用 order.getDepositOpen() 作为收益 |
| | | earnings = order.getDepositOpen(); |
| | | earnings = order.getDepositOpen().add(order.getAddDepositOpen()); |
| | | } |
| | | |
| | | if(ContractOrder.DIRECTION_BUY.equals(order.getDirection())){ |
| | |
| | | /** |
| | | * 触发全仓强平 |
| | | */ |
| | | log.info("------------------currentPrice-------------:"+currentPrice); |
| | | log.info("------------------order.getForceClosePrice()-------------"+order.getForceClosePrice()); |
| | | log.info("------------------开多强平-------------"); |
| | | this.contractOrderService.allClose(order.getPartyId()); |
| | | |
| | | } |
| | |
| | | /** |
| | | * 触发全仓强平 |
| | | */ |
| | | log.info("------------------currentPrice-------------:"+currentPrice); |
| | | log.info("------------------order.getForceClosePrice()-------------"+order.getForceClosePrice()); |
| | | log.info("------------------开空强平-------------"); |
| | | this.contractOrderService.allClose(order.getPartyId()); |
| | | |
| | | } |