Administrator
3 days ago bd3a9f2256030b8f41f944568ca7705de7d7fdd8
src/main/java/com/xcong/excoin/modules/gateApi/wsHandler/handler/PositionsChannelHandler.java
@@ -57,7 +57,13 @@
                Position.ModeEnum mode = Position.ModeEnum.fromValue(modeStr);
                BigDecimal size = new BigDecimal(pos.getString("size"));
                BigDecimal entryPrice = new BigDecimal(pos.getString("entry_price"));
                log.info("[{}] 持仓更新, 模式:{}, 数量:{}, 入场价:{}", CHANNEL_NAME, modeStr, size, entryPrice);
                log.info("[{}] 持仓更新, 合约:{}, 模式:{}, 数量:{}, 入场价:{}, 全仓杠杆上限:{}, 历史盈亏:{}, 历史点卡:{}, 最近平仓盈亏:{}, 杠杆:{}, 最大杠杆:{}, 爆仓价:{}, 维持保证金率:{}, 保证金:{}, 已实现盈亏:{}, 点卡已实现盈亏:{}, 风险限额:{}, 时间:{}, 时间ms:{}, 用户:{}, 更新ID:{}",
                        CHANNEL_NAME, pos.getString("contract"), modeStr, size, entryPrice,
                        pos.get("cross_leverage_limit"), pos.get("history_pnl"), pos.get("history_point"),
                        pos.get("last_close_pnl"), pos.get("leverage"), pos.get("leverage_max"),
                        pos.get("liq_price"), pos.get("maintenance_rate"), pos.get("margin"),
                        pos.get("realised_pnl"), pos.get("realised_point"), pos.get("risk_limit"),
                        pos.get("time"), pos.get("time_ms"), pos.get("user"), pos.get("update_id"));
                if (getGridTradeService() != null) {
                    getGridTradeService().onPositionUpdate(getContract(), mode, size, entryPrice);
                }