Administrator
14 hours ago a986f3571c7e18ade4665fe5999b445b5762264d
src/main/java/com/xcong/excoin/modules/gateApi/GateConfig.java
@@ -76,6 +76,8 @@
    private final BigDecimal contractMultiplier;
    /** 未实现盈亏计价模式:最新价 / 标记价格 */
    private final PnLPriceMode unrealizedPnlPriceMode;
    /** 网格绝对步长(shortBaseEntryPrice × gridRate),运行时由队列生成逻辑设置 */
    private BigDecimal step;
    private GateConfig(Builder builder) {
        this.apiKey = builder.apiKey;
@@ -172,6 +174,13 @@
    /** @return 未实现盈亏计价模式:LAST_PRICE(最新成交价)/ MARK_PRICE(标记价格) */
    public PnLPriceMode getUnrealizedPnlPriceMode() { return unrealizedPnlPriceMode; }
    // ==================== 运行时参数 ====================
    /** @return 网格绝对步长(shortBaseEntryPrice × gridRate),运行时设置 */
    public BigDecimal getStep() { return step; }
    /** 设置网格绝对步长(由 generateShortQueue 在运行时计算并注入) */
    public void setStep(BigDecimal step) { this.step = step; }
    // ==================== 环境 ====================
    /** @return 是否为生产环境(true=实盘生产网 / false=模拟盘测试网) */