Administrator
yesterday 0bf51b28965007320600177ba7a36425c154077c
止盈触发撤销止损单
1 files modified
4 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java 4 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -599,7 +599,7 @@
        if (longTpElem != null && StrUtil.isNotEmpty(tradeId) && !tradeId.equals("0")) {
            longTakeProfitTraderIdParam(longTpElem, null, false);
            log.info("[Gate] 多仓止盈触发 gridId:{}, orderId:{}", longTpElem.getId(), orderId);
//            cancelFarthestLongStopLoss();
            cancelFarthestLongStopLoss();
//            checkLastTakeProfitAndRestart();
            return;
        }
@@ -608,7 +608,7 @@
        if (shortTpElem != null && StrUtil.isNotEmpty(tradeId) && !tradeId.equals("0")) {
            shortTakeProfitTraderIdParam(shortTpElem, null, false);
            log.info("[Gate] 空仓止盈触发 gridId:{}, orderId:{}", shortTpElem.getId(), orderId);
//            cancelFarthestShortStopLoss();
            cancelFarthestShortStopLoss();
//            checkLastTakeProfitAndRestart();
            return;
        }