feat: 接入 USDT-M 合约数据 — type 字段方案
- PairType 定义移至 types/kline.ts (spot/um/cm) - Kline 接口新增 type 字段,全链路透传 - klines 5列复合主键 (exchange, symbol, type, interval, time) - 拆出 BinanceFuturesRestClient (USDMClient) - exchanges/index.ts 注册 binance_futures - trading_pairs 唯一约束加 type,种子数据加合约对 - 12个连续聚合视图 SELECT/GROUP BY/INDEX 加 type - 清理 bnkline.ts 废弃代码和 pair.ts 空函数
This commit is contained in:
+3
-1
@@ -13,7 +13,7 @@
|
||||
|
||||
import type { Observable } from "rxjs";
|
||||
|
||||
import type { KlineInterval } from "./kline";
|
||||
import type { KlineInterval, PairType } from "./kline";
|
||||
|
||||
// ============================================================
|
||||
// 标准化行情数据结构
|
||||
@@ -97,6 +97,8 @@ export interface Kline {
|
||||
exchange: string;
|
||||
/** 交易对符号 */
|
||||
symbol: string;
|
||||
/** 交易对类型(spot / um / cm) */
|
||||
type: PairType;
|
||||
/** K 线周期 */
|
||||
interval: KlineInterval;
|
||||
/** 开盘时间(Unix ms) */
|
||||
|
||||
Reference in New Issue
Block a user