Administrator
2025-12-23 2ef04f9d1fba9e4a92508dd72fd8e7430c300f22
fix(trading): 修正交易手续费计算和网格策略配置

- 买入平空操作的手续费计算增加2倍系数
- 调整网格策略中DOWN网格从做多改为做空,价格范围扩大至2700-2200
- 新增DOWN_ONE网格改为做多策略,价格范围设置为2200-1800
2 files modified
6 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/okxNewPrice/celue/CaoZuoServiceImpl.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/wanggeList/WangGeListEnum.java 4 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/okxNewPrice/celue/CaoZuoServiceImpl.java
@@ -368,7 +368,7 @@
                        log.info("开始买入平空...买入平空队列价格小于开仓价格{}<{}", kaiCang.getValue(), avgPx);
                        // 手续费
                        BigDecimal feeValue = PositionsWs.getAccountMap(positionAccountName).get("fee");
                        BigDecimal feeValue = PositionsWs.getAccountMap(positionAccountName).get("fee").multiply(new BigDecimal("2"));
                        //未实现收益
                        BigDecimal uplValue = PositionsWs.getAccountMap(positionAccountName).get("upl");
                        //已实现收益
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/wanggeList/WangGeListEnum.java
@@ -13,8 +13,8 @@
public enum WangGeListEnum {
    UP("上层做空", "2", "3200", "3000", "4", "short", "3100"),
    CENTER("中间做空", "2", "3000", "2700", "4", "short", "2700"),
    DOWN("下层做多", "2", "2700", "2500", "4", "long", "2500"),
    DOWN_ONE("下层做空", "2", "2500", "2200", "4", "short", "2500");
    DOWN("下层做空", "2", "2700", "2200", "4", "short", "2700"),
    DOWN_ONE("下层做多", "2", "2200", "1800", "4", "long", "1800");
    private String name;
    private String xiaoshu_weishu;