@backtest-kit/cli 6.13.0 → 6.14.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 +20 -5
- package/build/index.mjs +21 -6
- package/package.json +14 -14
- package/template/project/package.mustache +7 -7
package/build/index.cjs
CHANGED
|
@@ -2503,6 +2503,23 @@ class SetupUtils {
|
|
|
2503
2503
|
return;
|
|
2504
2504
|
}
|
|
2505
2505
|
this.enable.clear();
|
|
2506
|
+
{
|
|
2507
|
+
BacktestKit.Recent.disable();
|
|
2508
|
+
BacktestKit.Storage.disable();
|
|
2509
|
+
BacktestKit.Notification.disable();
|
|
2510
|
+
}
|
|
2511
|
+
{
|
|
2512
|
+
BacktestKit.Markdown.disable();
|
|
2513
|
+
BacktestKit.Report.disable();
|
|
2514
|
+
BacktestKit.Dump.disable();
|
|
2515
|
+
BacktestKit.Memory.disable();
|
|
2516
|
+
}
|
|
2517
|
+
{
|
|
2518
|
+
BacktestKit.Markdown.clear();
|
|
2519
|
+
BacktestKit.Report.clear();
|
|
2520
|
+
BacktestKit.MarkdownWriter.clear();
|
|
2521
|
+
BacktestKit.ReportWriter.clear();
|
|
2522
|
+
}
|
|
2506
2523
|
{
|
|
2507
2524
|
BacktestKit.PersistSignalAdapter.clear();
|
|
2508
2525
|
BacktestKit.PersistRiskAdapter.clear();
|
|
@@ -2522,8 +2539,6 @@ class SetupUtils {
|
|
|
2522
2539
|
BacktestKit.Dump.clear();
|
|
2523
2540
|
BacktestKit.Log.clear();
|
|
2524
2541
|
BacktestKit.Markdown.clear();
|
|
2525
|
-
BacktestKit.Memory.clear();
|
|
2526
|
-
BacktestKit.Report.clear();
|
|
2527
2542
|
}
|
|
2528
2543
|
{
|
|
2529
2544
|
BacktestKit.StorageLive.clear();
|
|
@@ -2590,7 +2605,7 @@ const main$b = async () => {
|
|
|
2590
2605
|
if (MODES.some((mode) => values[mode])) {
|
|
2591
2606
|
return;
|
|
2592
2607
|
}
|
|
2593
|
-
process.stdout.write(`@backtest-kit/cli ${"6.
|
|
2608
|
+
process.stdout.write(`@backtest-kit/cli ${"6.14.0"}\n`);
|
|
2594
2609
|
process.stdout.write("\n");
|
|
2595
2610
|
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
2596
2611
|
process.stdout.write("\n");
|
|
@@ -3158,7 +3173,7 @@ const main$1 = async () => {
|
|
|
3158
3173
|
if (!values.help) {
|
|
3159
3174
|
return;
|
|
3160
3175
|
}
|
|
3161
|
-
process.stdout.write(`@backtest-kit/cli ${"6.
|
|
3176
|
+
process.stdout.write(`@backtest-kit/cli ${"6.14.0"}\n\n`);
|
|
3162
3177
|
process.stdout.write(HELP_TEXT);
|
|
3163
3178
|
process.exit(0);
|
|
3164
3179
|
};
|
|
@@ -3172,7 +3187,7 @@ const main = async () => {
|
|
|
3172
3187
|
if (!values.version) {
|
|
3173
3188
|
return;
|
|
3174
3189
|
}
|
|
3175
|
-
process.stdout.write(`@backtest-kit/cli ${"6.
|
|
3190
|
+
process.stdout.write(`@backtest-kit/cli ${"6.14.0"}\n`);
|
|
3176
3191
|
process.exit(0);
|
|
3177
3192
|
};
|
|
3178
3193
|
main();
|
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 { Log, listExchangeSchema, addExchangeSchema, roundTicks, listFrameSchema, addFrameSchema, listenDoneLive, listenDoneBacktest, shutdown, listenSignal, listStrategySchema, overrideExchangeSchema, Backtest, Session, Cache, Interval, alignToInterval, addWalkerSchema, overrideWalkerSchema, Walker, listenDoneWalker, Live, getCandles, checkCandles, warmCandles, listenRisk, listenStrategyCommit, listenSync, Recent, Storage, Notification, Markdown, Report, Dump, Memory, StorageLive, StorageBacktest, RecentLive, RecentBacktest, NotificationLive, NotificationBacktest, PersistSignalAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistPartialAdapter, PersistBreakevenAdapter, PersistCandleAdapter, PersistStorageAdapter, PersistNotificationAdapter, PersistLogAdapter, PersistMeasureAdapter, PersistIntervalAdapter, PersistMemoryAdapter, PersistRecentAdapter, setConfig, Exchange } from 'backtest-kit';
|
|
3
|
+
import { Log, listExchangeSchema, addExchangeSchema, roundTicks, listFrameSchema, addFrameSchema, listenDoneLive, listenDoneBacktest, shutdown, listenSignal, listStrategySchema, overrideExchangeSchema, Backtest, Session, Cache, Interval, alignToInterval, addWalkerSchema, overrideWalkerSchema, Walker, listenDoneWalker, Live, getCandles, checkCandles, warmCandles, listenRisk, listenStrategyCommit, listenSync, Recent, Storage, Notification, Markdown, Report, Dump, Memory, StorageLive, StorageBacktest, RecentLive, RecentBacktest, NotificationLive, NotificationBacktest, MarkdownWriter, ReportWriter, PersistSignalAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistPartialAdapter, PersistBreakevenAdapter, PersistCandleAdapter, PersistStorageAdapter, PersistNotificationAdapter, PersistLogAdapter, PersistMeasureAdapter, PersistIntervalAdapter, PersistMemoryAdapter, PersistRecentAdapter, setConfig, Exchange } from 'backtest-kit';
|
|
4
4
|
import { getErrorMessage, errorData, singleshot, str, BehaviorSubject, compose, createAwaiter, execpool, queued, sleep, randomString, TIMEOUT_SYMBOL, typo, retry, trycatch, memoize } from 'functools-kit';
|
|
5
5
|
import fs, { constants } from 'fs';
|
|
6
6
|
import * as stackTrace from 'stack-trace';
|
|
@@ -2474,6 +2474,23 @@ class SetupUtils {
|
|
|
2474
2474
|
return;
|
|
2475
2475
|
}
|
|
2476
2476
|
this.enable.clear();
|
|
2477
|
+
{
|
|
2478
|
+
Recent.disable();
|
|
2479
|
+
Storage.disable();
|
|
2480
|
+
Notification.disable();
|
|
2481
|
+
}
|
|
2482
|
+
{
|
|
2483
|
+
Markdown.disable();
|
|
2484
|
+
Report.disable();
|
|
2485
|
+
Dump.disable();
|
|
2486
|
+
Memory.disable();
|
|
2487
|
+
}
|
|
2488
|
+
{
|
|
2489
|
+
Markdown.clear();
|
|
2490
|
+
Report.clear();
|
|
2491
|
+
MarkdownWriter.clear();
|
|
2492
|
+
ReportWriter.clear();
|
|
2493
|
+
}
|
|
2477
2494
|
{
|
|
2478
2495
|
PersistSignalAdapter.clear();
|
|
2479
2496
|
PersistRiskAdapter.clear();
|
|
@@ -2493,8 +2510,6 @@ class SetupUtils {
|
|
|
2493
2510
|
Dump.clear();
|
|
2494
2511
|
Log.clear();
|
|
2495
2512
|
Markdown.clear();
|
|
2496
|
-
Memory.clear();
|
|
2497
|
-
Report.clear();
|
|
2498
2513
|
}
|
|
2499
2514
|
{
|
|
2500
2515
|
StorageLive.clear();
|
|
@@ -2561,7 +2576,7 @@ const main$b = async () => {
|
|
|
2561
2576
|
if (MODES.some((mode) => values[mode])) {
|
|
2562
2577
|
return;
|
|
2563
2578
|
}
|
|
2564
|
-
process.stdout.write(`@backtest-kit/cli ${"6.
|
|
2579
|
+
process.stdout.write(`@backtest-kit/cli ${"6.14.0"}\n`);
|
|
2565
2580
|
process.stdout.write("\n");
|
|
2566
2581
|
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
2567
2582
|
process.stdout.write("\n");
|
|
@@ -3129,7 +3144,7 @@ const main$1 = async () => {
|
|
|
3129
3144
|
if (!values.help) {
|
|
3130
3145
|
return;
|
|
3131
3146
|
}
|
|
3132
|
-
process.stdout.write(`@backtest-kit/cli ${"6.
|
|
3147
|
+
process.stdout.write(`@backtest-kit/cli ${"6.14.0"}\n\n`);
|
|
3133
3148
|
process.stdout.write(HELP_TEXT);
|
|
3134
3149
|
process.exit(0);
|
|
3135
3150
|
};
|
|
@@ -3143,7 +3158,7 @@ const main = async () => {
|
|
|
3143
3158
|
if (!values.version) {
|
|
3144
3159
|
return;
|
|
3145
3160
|
}
|
|
3146
|
-
process.stdout.write(`@backtest-kit/cli ${"6.
|
|
3161
|
+
process.stdout.write(`@backtest-kit/cli ${"6.14.0"}\n`);
|
|
3147
3162
|
process.exit(0);
|
|
3148
3163
|
};
|
|
3149
3164
|
main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backtest-kit/cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.14.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",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@babel/plugin-transform-modules-umd": "7.27.1",
|
|
63
63
|
"@babel/standalone": "7.29.1",
|
|
64
|
-
"@backtest-kit/ui": "6.
|
|
65
|
-
"@backtest-kit/graph": "6.
|
|
66
|
-
"@backtest-kit/ollama": "6.
|
|
67
|
-
"@backtest-kit/pinets": "6.
|
|
68
|
-
"@backtest-kit/signals": "6.
|
|
64
|
+
"@backtest-kit/ui": "6.14.0",
|
|
65
|
+
"@backtest-kit/graph": "6.14.0",
|
|
66
|
+
"@backtest-kit/ollama": "6.14.0",
|
|
67
|
+
"@backtest-kit/pinets": "6.14.0",
|
|
68
|
+
"@backtest-kit/signals": "6.14.0",
|
|
69
69
|
"@rollup/plugin-replace": "6.0.3",
|
|
70
70
|
"@rollup/plugin-typescript": "11.1.6",
|
|
71
71
|
"@types/image-size": "0.7.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@types/mustache": "4.2.6",
|
|
74
74
|
"@types/node": "22.9.0",
|
|
75
75
|
"@types/stack-trace": "0.0.33",
|
|
76
|
-
"backtest-kit": "6.
|
|
76
|
+
"backtest-kit": "6.14.0",
|
|
77
77
|
"glob": "11.0.1",
|
|
78
78
|
"markdown-it": "14.1.1",
|
|
79
79
|
"rimraf": "6.0.1",
|
|
@@ -88,12 +88,12 @@
|
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@babel/plugin-transform-modules-umd": "^7.27.1",
|
|
90
90
|
"@babel/standalone": "^7.29.1",
|
|
91
|
-
"@backtest-kit/ui": "^6.
|
|
92
|
-
"@backtest-kit/graph": "^6.
|
|
93
|
-
"@backtest-kit/ollama": "^6.
|
|
94
|
-
"@backtest-kit/pinets": "^6.
|
|
95
|
-
"@backtest-kit/signals": "^6.
|
|
96
|
-
"backtest-kit": "^6.
|
|
91
|
+
"@backtest-kit/ui": "^6.14.0",
|
|
92
|
+
"@backtest-kit/graph": "^6.14.0",
|
|
93
|
+
"@backtest-kit/ollama": "^6.14.0",
|
|
94
|
+
"@backtest-kit/pinets": "^6.14.0",
|
|
95
|
+
"@backtest-kit/signals": "^6.14.0",
|
|
96
|
+
"backtest-kit": "^6.14.0",
|
|
97
97
|
"markdown-it": "^14.1.1",
|
|
98
98
|
"typescript": "^5.0.0"
|
|
99
99
|
},
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"di-kit": "1.1.1",
|
|
103
103
|
"di-scoped": "1.0.21",
|
|
104
104
|
"dotenv": "17.3.1",
|
|
105
|
-
"functools-kit": "2.0
|
|
105
|
+
"functools-kit": "2.2.0",
|
|
106
106
|
"get-moment-stamp": "1.1.2",
|
|
107
107
|
"image-size": "1.1.1",
|
|
108
108
|
"jsdom": "26.1.0",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"type": "commonjs",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@backtest-kit/cli": "^6.
|
|
16
|
-
"@backtest-kit/graph": "^6.
|
|
17
|
-
"@backtest-kit/pinets": "^6.
|
|
18
|
-
"@backtest-kit/ui": "^6.
|
|
19
|
-
"agent-swarm-kit": "^2.
|
|
20
|
-
"backtest-kit": "^6.
|
|
21
|
-
"functools-kit": "^2.0
|
|
15
|
+
"@backtest-kit/cli": "^6.14.0",
|
|
16
|
+
"@backtest-kit/graph": "^6.14.0",
|
|
17
|
+
"@backtest-kit/pinets": "^6.14.0",
|
|
18
|
+
"@backtest-kit/ui": "^6.14.0",
|
|
19
|
+
"agent-swarm-kit": "^2.5.0",
|
|
20
|
+
"backtest-kit": "^6.14.0",
|
|
21
|
+
"functools-kit": "^2.2.0",
|
|
22
22
|
"garch": "^1.2.3",
|
|
23
23
|
"get-moment-stamp": "^1.1.2",
|
|
24
24
|
"ollama": "^0.6.3",
|