@backtest-kit/cli 9.1.0 → 9.2.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 +39 -3
- package/build/index.mjs +39 -3
- package/docker/docker-compose.yaml +1 -0
- package/docker/package.json +6 -6
- package/package.json +13 -13
- package/template/project/package.mustache +5 -5
package/build/index.cjs
CHANGED
|
@@ -904,6 +904,10 @@ class BacktestMainService {
|
|
|
904
904
|
this.frontendProviderService.connect();
|
|
905
905
|
this.telegramProviderService.connect();
|
|
906
906
|
}
|
|
907
|
+
{
|
|
908
|
+
const cwd = process.cwd();
|
|
909
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
910
|
+
}
|
|
907
911
|
{
|
|
908
912
|
await this.resolveService.attachJavascript(payload.entryPoint);
|
|
909
913
|
await this.moduleConnectionService.loadModule("./backtest.module");
|
|
@@ -1042,6 +1046,10 @@ class WalkerMainService {
|
|
|
1042
1046
|
BacktestKit.Cache.resetCounter();
|
|
1043
1047
|
BacktestKit.Interval.resetCounter();
|
|
1044
1048
|
}
|
|
1049
|
+
{
|
|
1050
|
+
const cwd = process.cwd();
|
|
1051
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
1052
|
+
}
|
|
1045
1053
|
await this.moduleConnectionService.loadModule("./walker.module");
|
|
1046
1054
|
{
|
|
1047
1055
|
this.exchangeSchemaService.addSchema();
|
|
@@ -1236,6 +1244,10 @@ class LiveMainService {
|
|
|
1236
1244
|
this.frontendProviderService.connect();
|
|
1237
1245
|
this.telegramProviderService.connect();
|
|
1238
1246
|
}
|
|
1247
|
+
{
|
|
1248
|
+
const cwd = process.cwd();
|
|
1249
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
1250
|
+
}
|
|
1239
1251
|
{
|
|
1240
1252
|
await this.resolveService.attachJavascript(payload.entryPoint);
|
|
1241
1253
|
await this.moduleConnectionService.loadModule("./live.module");
|
|
@@ -1316,6 +1328,10 @@ class PaperMainService {
|
|
|
1316
1328
|
this.frontendProviderService.connect();
|
|
1317
1329
|
this.telegramProviderService.connect();
|
|
1318
1330
|
}
|
|
1331
|
+
{
|
|
1332
|
+
const cwd = process.cwd();
|
|
1333
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
1334
|
+
}
|
|
1319
1335
|
{
|
|
1320
1336
|
await this.resolveService.attachJavascript(payload.entryPoint);
|
|
1321
1337
|
await this.moduleConnectionService.loadModule("./paper.module");
|
|
@@ -3051,7 +3067,7 @@ const main$g = async () => {
|
|
|
3051
3067
|
if (MODES.some((mode) => values[mode])) {
|
|
3052
3068
|
return;
|
|
3053
3069
|
}
|
|
3054
|
-
process.stdout.write(`@backtest-kit/cli ${"9.
|
|
3070
|
+
process.stdout.write(`@backtest-kit/cli ${"9.2.0"}\n`);
|
|
3055
3071
|
process.stdout.write("\n");
|
|
3056
3072
|
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
3057
3073
|
process.stdout.write("\n");
|
|
@@ -3343,6 +3359,10 @@ const main$a = async () => {
|
|
|
3343
3359
|
Setup.enable();
|
|
3344
3360
|
cli.frontendProviderService.connect();
|
|
3345
3361
|
cli.telegramProviderService.connect();
|
|
3362
|
+
{
|
|
3363
|
+
const cwd = process.cwd();
|
|
3364
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3365
|
+
}
|
|
3346
3366
|
await cli.moduleConnectionService.loadModule(MODE_MODULE[mode]);
|
|
3347
3367
|
listenFinish();
|
|
3348
3368
|
createGracefulShutdown(mode)();
|
|
@@ -3427,6 +3447,10 @@ const main$7 = async () => {
|
|
|
3427
3447
|
return;
|
|
3428
3448
|
}
|
|
3429
3449
|
const source = await cli.resolveService.attachPine(entryPoint);
|
|
3450
|
+
{
|
|
3451
|
+
const cwd = process.cwd();
|
|
3452
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3453
|
+
}
|
|
3430
3454
|
await cli.moduleConnectionService.loadModule("./pine.module");
|
|
3431
3455
|
{
|
|
3432
3456
|
await cli.exchangeSchemaService.addSchema();
|
|
@@ -3508,6 +3532,10 @@ const main$6 = async () => {
|
|
|
3508
3532
|
await cli.configService.waitForInit();
|
|
3509
3533
|
Setup.enable();
|
|
3510
3534
|
}
|
|
3535
|
+
{
|
|
3536
|
+
const cwd = process.cwd();
|
|
3537
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3538
|
+
}
|
|
3511
3539
|
await cli.moduleConnectionService.loadModule("./editor.module");
|
|
3512
3540
|
{
|
|
3513
3541
|
await cli.exchangeSchemaService.addSchema();
|
|
@@ -3537,6 +3565,10 @@ const main$5 = async () => {
|
|
|
3537
3565
|
if (!values.dump) {
|
|
3538
3566
|
return;
|
|
3539
3567
|
}
|
|
3568
|
+
{
|
|
3569
|
+
const cwd = process.cwd();
|
|
3570
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3571
|
+
}
|
|
3540
3572
|
await cli.moduleConnectionService.loadModule("./dump.module");
|
|
3541
3573
|
{
|
|
3542
3574
|
await cli.exchangeSchemaService.addSchema();
|
|
@@ -3600,6 +3632,10 @@ const main$4 = async () => {
|
|
|
3600
3632
|
if (!values.pnldebug) {
|
|
3601
3633
|
return;
|
|
3602
3634
|
}
|
|
3635
|
+
{
|
|
3636
|
+
const cwd = process.cwd();
|
|
3637
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3638
|
+
}
|
|
3603
3639
|
await cli.moduleConnectionService.loadModule("./pnldebug.module");
|
|
3604
3640
|
{
|
|
3605
3641
|
await cli.exchangeSchemaService.addSchema();
|
|
@@ -4054,7 +4090,7 @@ const main$1 = async () => {
|
|
|
4054
4090
|
if (!values.help) {
|
|
4055
4091
|
return;
|
|
4056
4092
|
}
|
|
4057
|
-
process.stdout.write(`@backtest-kit/cli ${"9.
|
|
4093
|
+
process.stdout.write(`@backtest-kit/cli ${"9.2.0"}\n\n`);
|
|
4058
4094
|
process.stdout.write(HELP_TEXT);
|
|
4059
4095
|
process.exit(0);
|
|
4060
4096
|
};
|
|
@@ -4068,7 +4104,7 @@ const main = async () => {
|
|
|
4068
4104
|
if (!values.version) {
|
|
4069
4105
|
return;
|
|
4070
4106
|
}
|
|
4071
|
-
process.stdout.write(`@backtest-kit/cli ${"9.
|
|
4107
|
+
process.stdout.write(`@backtest-kit/cli ${"9.2.0"}\n`);
|
|
4072
4108
|
process.exit(0);
|
|
4073
4109
|
};
|
|
4074
4110
|
main();
|
package/build/index.mjs
CHANGED
|
@@ -879,6 +879,10 @@ class BacktestMainService {
|
|
|
879
879
|
this.frontendProviderService.connect();
|
|
880
880
|
this.telegramProviderService.connect();
|
|
881
881
|
}
|
|
882
|
+
{
|
|
883
|
+
const cwd = process.cwd();
|
|
884
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
885
|
+
}
|
|
882
886
|
{
|
|
883
887
|
await this.resolveService.attachJavascript(payload.entryPoint);
|
|
884
888
|
await this.moduleConnectionService.loadModule("./backtest.module");
|
|
@@ -1017,6 +1021,10 @@ class WalkerMainService {
|
|
|
1017
1021
|
Cache.resetCounter();
|
|
1018
1022
|
Interval.resetCounter();
|
|
1019
1023
|
}
|
|
1024
|
+
{
|
|
1025
|
+
const cwd = process.cwd();
|
|
1026
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
1027
|
+
}
|
|
1020
1028
|
await this.moduleConnectionService.loadModule("./walker.module");
|
|
1021
1029
|
{
|
|
1022
1030
|
this.exchangeSchemaService.addSchema();
|
|
@@ -1211,6 +1219,10 @@ class LiveMainService {
|
|
|
1211
1219
|
this.frontendProviderService.connect();
|
|
1212
1220
|
this.telegramProviderService.connect();
|
|
1213
1221
|
}
|
|
1222
|
+
{
|
|
1223
|
+
const cwd = process.cwd();
|
|
1224
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
1225
|
+
}
|
|
1214
1226
|
{
|
|
1215
1227
|
await this.resolveService.attachJavascript(payload.entryPoint);
|
|
1216
1228
|
await this.moduleConnectionService.loadModule("./live.module");
|
|
@@ -1291,6 +1303,10 @@ class PaperMainService {
|
|
|
1291
1303
|
this.frontendProviderService.connect();
|
|
1292
1304
|
this.telegramProviderService.connect();
|
|
1293
1305
|
}
|
|
1306
|
+
{
|
|
1307
|
+
const cwd = process.cwd();
|
|
1308
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
1309
|
+
}
|
|
1294
1310
|
{
|
|
1295
1311
|
await this.resolveService.attachJavascript(payload.entryPoint);
|
|
1296
1312
|
await this.moduleConnectionService.loadModule("./paper.module");
|
|
@@ -3022,7 +3038,7 @@ const main$g = async () => {
|
|
|
3022
3038
|
if (MODES.some((mode) => values[mode])) {
|
|
3023
3039
|
return;
|
|
3024
3040
|
}
|
|
3025
|
-
process.stdout.write(`@backtest-kit/cli ${"9.
|
|
3041
|
+
process.stdout.write(`@backtest-kit/cli ${"9.2.0"}\n`);
|
|
3026
3042
|
process.stdout.write("\n");
|
|
3027
3043
|
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
3028
3044
|
process.stdout.write("\n");
|
|
@@ -3314,6 +3330,10 @@ const main$a = async () => {
|
|
|
3314
3330
|
Setup.enable();
|
|
3315
3331
|
cli.frontendProviderService.connect();
|
|
3316
3332
|
cli.telegramProviderService.connect();
|
|
3333
|
+
{
|
|
3334
|
+
const cwd = process.cwd();
|
|
3335
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3336
|
+
}
|
|
3317
3337
|
await cli.moduleConnectionService.loadModule(MODE_MODULE[mode]);
|
|
3318
3338
|
listenFinish();
|
|
3319
3339
|
createGracefulShutdown(mode)();
|
|
@@ -3398,6 +3418,10 @@ const main$7 = async () => {
|
|
|
3398
3418
|
return;
|
|
3399
3419
|
}
|
|
3400
3420
|
const source = await cli.resolveService.attachPine(entryPoint);
|
|
3421
|
+
{
|
|
3422
|
+
const cwd = process.cwd();
|
|
3423
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3424
|
+
}
|
|
3401
3425
|
await cli.moduleConnectionService.loadModule("./pine.module");
|
|
3402
3426
|
{
|
|
3403
3427
|
await cli.exchangeSchemaService.addSchema();
|
|
@@ -3479,6 +3503,10 @@ const main$6 = async () => {
|
|
|
3479
3503
|
await cli.configService.waitForInit();
|
|
3480
3504
|
Setup.enable();
|
|
3481
3505
|
}
|
|
3506
|
+
{
|
|
3507
|
+
const cwd = process.cwd();
|
|
3508
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3509
|
+
}
|
|
3482
3510
|
await cli.moduleConnectionService.loadModule("./editor.module");
|
|
3483
3511
|
{
|
|
3484
3512
|
await cli.exchangeSchemaService.addSchema();
|
|
@@ -3508,6 +3536,10 @@ const main$5 = async () => {
|
|
|
3508
3536
|
if (!values.dump) {
|
|
3509
3537
|
return;
|
|
3510
3538
|
}
|
|
3539
|
+
{
|
|
3540
|
+
const cwd = process.cwd();
|
|
3541
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3542
|
+
}
|
|
3511
3543
|
await cli.moduleConnectionService.loadModule("./dump.module");
|
|
3512
3544
|
{
|
|
3513
3545
|
await cli.exchangeSchemaService.addSchema();
|
|
@@ -3571,6 +3603,10 @@ const main$4 = async () => {
|
|
|
3571
3603
|
if (!values.pnldebug) {
|
|
3572
3604
|
return;
|
|
3573
3605
|
}
|
|
3606
|
+
{
|
|
3607
|
+
const cwd = process.cwd();
|
|
3608
|
+
dotenv.config({ path: path.join(cwd, '.env'), override: true, quiet: true });
|
|
3609
|
+
}
|
|
3574
3610
|
await cli.moduleConnectionService.loadModule("./pnldebug.module");
|
|
3575
3611
|
{
|
|
3576
3612
|
await cli.exchangeSchemaService.addSchema();
|
|
@@ -4025,7 +4061,7 @@ const main$1 = async () => {
|
|
|
4025
4061
|
if (!values.help) {
|
|
4026
4062
|
return;
|
|
4027
4063
|
}
|
|
4028
|
-
process.stdout.write(`@backtest-kit/cli ${"9.
|
|
4064
|
+
process.stdout.write(`@backtest-kit/cli ${"9.2.0"}\n\n`);
|
|
4029
4065
|
process.stdout.write(HELP_TEXT);
|
|
4030
4066
|
process.exit(0);
|
|
4031
4067
|
};
|
|
@@ -4039,7 +4075,7 @@ const main = async () => {
|
|
|
4039
4075
|
if (!values.version) {
|
|
4040
4076
|
return;
|
|
4041
4077
|
}
|
|
4042
|
-
process.stdout.write(`@backtest-kit/cli ${"9.
|
|
4078
|
+
process.stdout.write(`@backtest-kit/cli ${"9.2.0"}\n`);
|
|
4043
4079
|
process.exit(0);
|
|
4044
4080
|
};
|
|
4045
4081
|
main();
|
package/docker/package.json
CHANGED
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"@types/node": "25.6.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@backtest-kit/cli": "9.
|
|
19
|
-
"@backtest-kit/graph": "9.
|
|
20
|
-
"@backtest-kit/pinets": "9.
|
|
21
|
-
"@backtest-kit/signals": "9.
|
|
22
|
-
"@backtest-kit/ui": "9.
|
|
18
|
+
"@backtest-kit/cli": "9.2.0",
|
|
19
|
+
"@backtest-kit/graph": "9.2.0",
|
|
20
|
+
"@backtest-kit/pinets": "9.2.0",
|
|
21
|
+
"@backtest-kit/signals": "9.2.0",
|
|
22
|
+
"@backtest-kit/ui": "9.2.0",
|
|
23
23
|
"@tavily/core": "0.7.2",
|
|
24
24
|
"@tensorflow/tfjs": "4.22.0",
|
|
25
25
|
"@tensorflow/tfjs-backend-wasm": "4.22.0",
|
|
26
26
|
"@tensorflow/tfjs-core": "4.22.0",
|
|
27
27
|
"agent-swarm-kit": "2.6.0",
|
|
28
|
-
"backtest-kit": "9.
|
|
28
|
+
"backtest-kit": "9.2.0",
|
|
29
29
|
"dayjs": "1.11.20",
|
|
30
30
|
"functools-kit": "2.3.0",
|
|
31
31
|
"garch": "1.2.3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backtest-kit/cli",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.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",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/plugin-transform-modules-umd": "7.27.1",
|
|
65
65
|
"@babel/standalone": "7.29.1",
|
|
66
|
-
"@backtest-kit/graph": "9.
|
|
67
|
-
"@backtest-kit/ollama": "9.
|
|
68
|
-
"@backtest-kit/pinets": "9.
|
|
69
|
-
"@backtest-kit/signals": "9.
|
|
70
|
-
"@backtest-kit/ui": "9.
|
|
66
|
+
"@backtest-kit/graph": "9.2.0",
|
|
67
|
+
"@backtest-kit/ollama": "9.2.0",
|
|
68
|
+
"@backtest-kit/pinets": "9.2.0",
|
|
69
|
+
"@backtest-kit/signals": "9.2.0",
|
|
70
|
+
"@backtest-kit/ui": "9.2.0",
|
|
71
71
|
"@rollup/plugin-replace": "6.0.3",
|
|
72
72
|
"@rollup/plugin-typescript": "11.1.6",
|
|
73
73
|
"@types/image-size": "0.7.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@types/mustache": "4.2.6",
|
|
76
76
|
"@types/node": "22.9.0",
|
|
77
77
|
"@types/stack-trace": "0.0.33",
|
|
78
|
-
"backtest-kit": "9.
|
|
78
|
+
"backtest-kit": "9.2.0",
|
|
79
79
|
"glob": "11.0.1",
|
|
80
80
|
"markdown-it": "14.1.1",
|
|
81
81
|
"rimraf": "6.0.1",
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@babel/plugin-transform-modules-umd": "^7.27.1",
|
|
92
92
|
"@babel/standalone": "^7.29.1",
|
|
93
|
-
"@backtest-kit/graph": "^9.
|
|
94
|
-
"@backtest-kit/ollama": "^9.
|
|
95
|
-
"@backtest-kit/pinets": "^9.
|
|
96
|
-
"@backtest-kit/signals": "^9.
|
|
97
|
-
"@backtest-kit/ui": "^9.
|
|
98
|
-
"backtest-kit": "^9.
|
|
93
|
+
"@backtest-kit/graph": "^9.2.0",
|
|
94
|
+
"@backtest-kit/ollama": "^9.2.0",
|
|
95
|
+
"@backtest-kit/pinets": "^9.2.0",
|
|
96
|
+
"@backtest-kit/signals": "^9.2.0",
|
|
97
|
+
"@backtest-kit/ui": "^9.2.0",
|
|
98
|
+
"backtest-kit": "^9.2.0",
|
|
99
99
|
"markdown-it": "^14.1.1",
|
|
100
100
|
"typescript": "^5.0.0"
|
|
101
101
|
},
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"type": "commonjs",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@backtest-kit/cli": "^9.
|
|
17
|
-
"@backtest-kit/graph": "^9.
|
|
18
|
-
"@backtest-kit/pinets": "^9.
|
|
19
|
-
"@backtest-kit/ui": "^9.
|
|
16
|
+
"@backtest-kit/cli": "^9.2.0",
|
|
17
|
+
"@backtest-kit/graph": "^9.2.0",
|
|
18
|
+
"@backtest-kit/pinets": "^9.2.0",
|
|
19
|
+
"@backtest-kit/ui": "^9.2.0",
|
|
20
20
|
"agent-swarm-kit": "^2.6.0",
|
|
21
|
-
"backtest-kit": "^9.
|
|
21
|
+
"backtest-kit": "^9.2.0",
|
|
22
22
|
"functools-kit": "^2.3.0",
|
|
23
23
|
"garch": "^1.2.3",
|
|
24
24
|
"get-moment-stamp": "^1.1.2",
|