Administrator
3 days ago 98986bf100201ad41843cbba52d803911c7277f0
fix(gateApi): 修正计划订单类型常量命名
2 files modified
6 ■■■■ 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/GateTradeExecutor.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -58,8 +58,8 @@
        WAITING_KLINE, OPENING, ACTIVE, STOPPED
    }
    private static final String ORDER_TYPE_CLOSE_LONG = "close-long-position";
    private static final String ORDER_TYPE_CLOSE_SHORT = "close-short-position";
    private static final String ORDER_TYPE_CLOSE_LONG = "plan-close-long-position";
    private static final String ORDER_TYPE_CLOSE_SHORT = "plan-close-short-position";
    private final GateConfig config;
    private final GateTradeExecutor executor;
src/main/java/com/xcong/excoin/modules/gateApi/GateTradeExecutor.java
@@ -129,7 +129,7 @@
     *
     * @param triggerPrice 触发价格
     * @param rule         触发规则(NUMBER_1: ≥ 触发价,NUMBER_2: ≤ 触发价)
     * @param orderType    stop 类型(close-long-position / close-short-position)
     * @param orderType    stop 类型(plan-close-long-position / plan-close-short-position)
     * @param size         平仓张数(正=平空,负=平多)
     */
    public void placeTakeProfit(BigDecimal triggerPrice,