新版仿ok交易所-后端
1
zj
2025-09-07 e4174aed067985155c157f10b0c4294f18eb2359
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);