新版仿ok交易所-后端
zyy
2025-09-01 69b5fdc593fa73424448df0c911c5177f7497e7c
trading-order-bean/src/main/java/com/yami/trading/bean/contract/dto/ContractOrderDTO.java
@@ -173,6 +173,11 @@
    */
   private String forceClosePrice;
   /**
    * 盈亏比
    */
   private Double profitLossRatio;
   public BigDecimal getProfitLoss() {
      if("submitted".equalsIgnoreCase(state)){
         return amountClose.add(profit).add(deposit).subtract(depositOpen).setScale(4, BigDecimal.ROUND_HALF_UP);