Administrator
1 days ago a82f34699cc281294ac86c8b70204bdf2e133449
价格驱动挂单开启
1 files modified
24 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java 24 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -397,18 +397,18 @@
        checkProfitAndReset();
//        if (state == StrategyState.ACTIVE &&
//                longActive == false &&
//                    longPositionSize.compareTo(BigDecimal.ZERO) == 0){
//            processShortGrid(closePrice);
//        }
//
//
//        if (state == StrategyState.ACTIVE &&
//                shortActive == false &&
//                        shortPositionSize.compareTo(BigDecimal.ZERO) == 0){
//            processLongGrid(closePrice);
//        }
        if (state == StrategyState.ACTIVE &&
                longActive == false &&
                    longPositionSize.compareTo(BigDecimal.ZERO) == 0){
            processShortGrid(closePrice);
        }
        if (state == StrategyState.ACTIVE &&
                shortActive == false &&
                        shortPositionSize.compareTo(BigDecimal.ZERO) == 0){
            processLongGrid(closePrice);
        }
    }
    /** Gate 永续合约 taker 费率 0.05% */