7e5aeb4270fa91096410e66542273def7beaea5d..5f436f56456240c99cc849d0a49a007386251492
2025-12-23 Administrator
fix(okx): 调整保证金比例和网格交易参数
5f436f diff | tree
2025-12-23 Administrator
fix(trading): 修正交易手续费计算和网格策略配置
2ef04f diff | tree
3 files modified
12 ■■■■ 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/enums/CoinEnums.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/wanggeList/WangGeListEnum.java 8 ●●●● 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/enums/CoinEnums.java
@@ -45,7 +45,7 @@
    PING_CANG_SHOUYI("平仓收益比例", "0.5"),
    //下单的总保障金为账户总金额cashBal * TOTAL_ORDER_USDT用来做保证金
    TOTAL_ORDER_USDTPECENT("总保证金比例total_order_usdtpecent","0.06"),
    TOTAL_ORDER_USDTPECENT("总保证金比例total_order_usdtpecent","0.1"),
    TOTAL_ORDER_USDT("总保证金totalOrderUsdt","0"),
    KANG_CANG("抗压比例KANG_CANG","0.9"),
    ZHI_SUN("止损比例ZHI_SUN","0.8"),
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/wanggeList/WangGeListEnum.java
@@ -11,10 +11,10 @@
 */
@Getter
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");
    UP("上层做空", "2", "3200", "3000", "4", "short", "3200"),
    CENTER("中间做空", "2", "3000", "2700", "4", "short", "3000"),
    DOWN("下层做空", "2", "2700", "2200", "4", "short", "2700"),
    DOWN_ONE("下层做多", "2", "2200", "1800", "4", "long", "1800");
    private String name;
    private String xiaoshu_weishu;