@backtest-kit/cli 3.5.1 → 3.6.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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  > Zero-boilerplate CLI for launching backtests, paper trading, and live trading. Run any backtest-kit strategy from the command line — no setup code required.
6
6
 
7
- ![screenshot](https://raw.githubusercontent.com/tripolskypetr/backtest-kit/HEAD/assets/screenshots/screenshot8.png)
7
+ ![screenshot](https://raw.githubusercontent.com/tripolskypetr/backtest-kit/HEAD/assets/screenshots/screenshot16.png)
8
8
 
9
9
  [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/tripolskypetr/backtest-kit)
10
10
  [![npm](https://img.shields.io/npm/v/@backtest-kit/cli.svg?style=flat-square)](https://npmjs.org/package/@backtest-kit/cli)
package/build/index.cjs CHANGED
@@ -537,6 +537,7 @@ const notifyFinish = functoolsKit.singleshot(() => {
537
537
  disposeRef && disposeRef();
538
538
  });
539
539
  disposeRef = functoolsKit.compose(() => unLive(), () => unBacktest());
540
+ BacktestKit.shutdown();
540
541
  });
541
542
 
542
543
  const getEntry = (metaUrl) => {
package/build/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import * as BacktestKit from 'backtest-kit';
3
- import { Storage, Notification, Markdown, Report, StorageLive, StorageBacktest, NotificationLive, NotificationBacktest, setConfig, Log, listExchangeSchema, addExchangeSchema, roundTicks, listFrameSchema, addFrameSchema, listenDoneLive, listenDoneBacktest, listenSignal, listStrategySchema, overrideExchangeSchema, Backtest, Live, getCandles, checkCandles, warmCandles, listenRisk, listenStrategyCommit } from 'backtest-kit';
3
+ import { Storage, Notification, Markdown, Report, StorageLive, StorageBacktest, NotificationLive, NotificationBacktest, setConfig, Log, listExchangeSchema, addExchangeSchema, roundTicks, listFrameSchema, addFrameSchema, listenDoneLive, listenDoneBacktest, shutdown, listenSignal, listStrategySchema, overrideExchangeSchema, Backtest, Live, getCandles, checkCandles, warmCandles, listenRisk, listenStrategyCommit } from 'backtest-kit';
4
4
  import { getErrorMessage, errorData, singleshot, str, BehaviorSubject, compose, execpool, queued, sleep, randomString, createAwaiter, TIMEOUT_SYMBOL, typo, retry, memoize, trycatch } from 'functools-kit';
5
5
  import fs, { constants } from 'fs';
6
6
  import * as stackTrace from 'stack-trace';
@@ -511,6 +511,7 @@ const notifyFinish = singleshot(() => {
511
511
  disposeRef && disposeRef();
512
512
  });
513
513
  disposeRef = compose(() => unLive(), () => unBacktest());
514
+ shutdown();
514
515
  });
515
516
 
516
517
  const getEntry = (metaUrl) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backtest-kit/cli",
3
- "version": "3.5.1",
3
+ "version": "3.6.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.5.1",
64
- "@backtest-kit/graph": "3.5.1",
65
- "@backtest-kit/ollama": "3.5.1",
66
- "@backtest-kit/pinets": "3.5.1",
67
- "@backtest-kit/signals": "3.5.1",
63
+ "@backtest-kit/ui": "3.6.0",
64
+ "@backtest-kit/graph": "3.6.0",
65
+ "@backtest-kit/ollama": "3.6.0",
66
+ "@backtest-kit/pinets": "3.6.0",
67
+ "@backtest-kit/signals": "3.6.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.5.1",
75
+ "backtest-kit": "3.6.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.5.1",
91
- "@backtest-kit/graph": "^3.5.1",
92
- "@backtest-kit/ollama": "^3.5.1",
93
- "@backtest-kit/pinets": "^3.5.1",
94
- "@backtest-kit/signals": "^3.5.1",
95
- "backtest-kit": "^3.5.1",
90
+ "@backtest-kit/ui": "^3.6.0",
91
+ "@backtest-kit/graph": "^3.6.0",
92
+ "@backtest-kit/ollama": "^3.6.0",
93
+ "@backtest-kit/pinets": "^3.6.0",
94
+ "@backtest-kit/signals": "^3.6.0",
95
+ "backtest-kit": "^3.6.0",
96
96
  "markdown-it": "^14.1.1",
97
97
  "typescript": "^5.0.0"
98
98
  },