添加 USDT-M 合约数据支持(配置层 + 清理多余字段)
- 配置层:env.yaml 新增 binance_futures API Key 段,validators + config 同步 - 清理 TradingPair 实体:删除 kline_interval、kline_intervals、kline_synthesis_enabled - 删除 fetchKlines 系列函数的 interval 参数,硬编码为 1m - 更新 SQL seed 数据、example、base_rest 接口、types 接口 - 新增 AGENTS/08-boundaries.md 执行纪律 - 新增 PLAN-add-futures-data.md 方案文档
This commit is contained in:
@@ -144,6 +144,11 @@ export const exchange = {
|
||||
apiKey: rawConfig.exchange.binance.api_key,
|
||||
apiSecret: rawConfig.exchange.binance.api_secret,
|
||||
},
|
||||
/** USDT-M 永续合约 API Key */
|
||||
binanceFutures: {
|
||||
apiKey: rawConfig.exchange.binance_futures.api_key,
|
||||
apiSecret: rawConfig.exchange.binance_futures.api_secret,
|
||||
},
|
||||
} as const;
|
||||
|
||||
// ============================================================
|
||||
@@ -170,6 +175,10 @@ export function printConfigSummary(): void {
|
||||
apiKey: exchange.binance.apiKey.slice(0, 6) + "***",
|
||||
apiSecret: "***",
|
||||
},
|
||||
binanceFutures: {
|
||||
apiKey: exchange.binanceFutures.apiKey.slice(0, 6) + "***",
|
||||
apiSecret: "***",
|
||||
},
|
||||
},
|
||||
logging: {
|
||||
level: logging.level,
|
||||
|
||||
Reference in New Issue
Block a user