| | |
| | | private final BigDecimal contractMultiplier; |
| | | /** 未实现盈亏计价模式:最新价 / 标记价格 */ |
| | | private final PnLPriceMode unrealizedPnlPriceMode; |
| | | /** 网格绝对步长(shortBaseEntryPrice × gridRate),运行时由队列生成逻辑设置 */ |
| | | private BigDecimal step; |
| | | |
| | | private GateConfig(Builder builder) { |
| | | this.apiKey = builder.apiKey; |
| | |
| | | /** @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=模拟盘测试网) */ |