mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 08:48:07 +00:00
feat: 添加 Paradex 适配器支持,更新环境变量配置和适配器构建逻辑
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user