@backtest-kit/cli 3.4.5 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.cjs CHANGED
@@ -388,6 +388,21 @@ const ADD_EXCHANGE_FN = (self) => {
388
388
  })),
389
389
  };
390
390
  },
391
+ getAggregatedTrades: async (symbol, from, to) => {
392
+ const exchange = await getExchange();
393
+ const response = await exchange.publicGetAggTrades({
394
+ symbol,
395
+ startTime: from.getTime(),
396
+ endTime: to.getTime(),
397
+ });
398
+ return response.map((t) => ({
399
+ id: String(t.a),
400
+ price: parseFloat(t.p),
401
+ qty: parseFloat(t.q),
402
+ timestamp: t.T,
403
+ isBuyerMaker: t.m,
404
+ }));
405
+ }
391
406
  });
392
407
  };
393
408
  class ExchangeSchemaService {
package/build/index.mjs CHANGED
@@ -362,6 +362,21 @@ const ADD_EXCHANGE_FN = (self) => {
362
362
  })),
363
363
  };
364
364
  },
365
+ getAggregatedTrades: async (symbol, from, to) => {
366
+ const exchange = await getExchange();
367
+ const response = await exchange.publicGetAggTrades({
368
+ symbol,
369
+ startTime: from.getTime(),
370
+ endTime: to.getTime(),
371
+ });
372
+ return response.map((t) => ({
373
+ id: String(t.a),
374
+ price: parseFloat(t.p),
375
+ qty: parseFloat(t.q),
376
+ timestamp: t.T,
377
+ isBuyerMaker: t.m,
378
+ }));
379
+ }
365
380
  });
366
381
  };
367
382
  class ExchangeSchemaService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backtest-kit/cli",
3
- "version": "3.4.5",
3
+ "version": "3.5.0",
4
4
  "description": "Zero-boilerplate CLI runner for backtest-kit strategies. Run backtests, paper trading, and live bots with candle cache warming, web dashboard, and Telegram notifications — no setup code required.",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -60,11 +60,11 @@
60
60
  "devDependencies": {
61
61
  "@babel/plugin-transform-modules-umd": "7.27.1",
62
62
  "@babel/standalone": "7.29.1",
63
- "@backtest-kit/ui": "3.4.0",
64
- "@backtest-kit/graph": "3.4.0",
65
- "@backtest-kit/ollama": "3.4.1",
66
- "@backtest-kit/pinets": "3.4.0",
67
- "@backtest-kit/signals": "3.4.1",
63
+ "@backtest-kit/ui": "3.5.0",
64
+ "@backtest-kit/graph": "3.5.0",
65
+ "@backtest-kit/ollama": "3.5.0",
66
+ "@backtest-kit/pinets": "3.5.0",
67
+ "@backtest-kit/signals": "3.5.0",
68
68
  "@rollup/plugin-replace": "6.0.3",
69
69
  "@rollup/plugin-typescript": "11.1.6",
70
70
  "@types/image-size": "0.7.0",
@@ -72,7 +72,7 @@
72
72
  "@types/mustache": "4.2.6",
73
73
  "@types/node": "22.9.0",
74
74
  "@types/stack-trace": "0.0.33",
75
- "backtest-kit": "3.4.0",
75
+ "backtest-kit": "3.5.0",
76
76
  "glob": "11.0.1",
77
77
  "markdown-it": "14.1.1",
78
78
  "rimraf": "6.0.1",
@@ -87,12 +87,12 @@
87
87
  "peerDependencies": {
88
88
  "@babel/plugin-transform-modules-umd": "^7.27.1",
89
89
  "@babel/standalone": "^7.29.1",
90
- "@backtest-kit/ui": "^3.4.0",
91
- "@backtest-kit/graph": "^3.4.0",
92
- "@backtest-kit/ollama": "^3.4.1",
93
- "@backtest-kit/pinets": "^3.4.0",
94
- "@backtest-kit/signals": "^3.4.1",
95
- "backtest-kit": "^3.4.0",
90
+ "@backtest-kit/ui": "^3.5.0",
91
+ "@backtest-kit/graph": "^3.5.0",
92
+ "@backtest-kit/ollama": "^3.5.0",
93
+ "@backtest-kit/pinets": "^3.5.0",
94
+ "@backtest-kit/signals": "^3.5.0",
95
+ "backtest-kit": "^3.5.0",
96
96
  "markdown-it": "^14.1.1",
97
97
  "typescript": "^5.0.0"
98
98
  },