feat: 添加 Paradex 适配器支持,更新环境变量配置和适配器构建逻辑

This commit is contained in:
discountry
2025-10-06 18:06:23 +08:00
parent ccc3a2bf89
commit cfd5f4309d
18 changed files with 1681 additions and 177 deletions
+2
View File
@@ -242,6 +242,8 @@ export class TrendEngine {
this.exchange.watchKlines.bind(this.exchange, this.config.symbol, this.config.klineInterval),
(klines) => {
this.klineSnapshot = Array.isArray(klines) ? klines : [];
const latestSma = getSMA(this.klineSnapshot, 30);
this.lastSma30 = latestSma;
this.logKlineSnapshot();
this.emitUpdate();
},