@backtest-kit/cli 6.16.0 → 7.0.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 +6 -2
- package/build/index.cjs +7 -4
- package/build/index.mjs +7 -4
- package/package.json +14 -14
- package/template/project/package.mustache +7 -6
package/README.md
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
Point the CLI at your strategy file, choose a mode, and it handles exchange connectivity, candle caching, UI dashboard, and Telegram notifications for you.
|
|
14
14
|
|
|
15
|
-
📚 **[Backtest Kit Docs](https://backtest-kit.github.io/documents/
|
|
15
|
+
📚 **[Backtest Kit Docs](https://backtest-kit.github.io/documents/article_07_ai_news_trading_signals.html)** | 🌟 **[GitHub](https://github.com/tripolskypetr/backtest-kit)**
|
|
16
|
+
|
|
17
|
+
> **New to backtest-kit?** The fastest way to get a real, production-ready setup is to clone the [reference implementation](https://github.com/tripolskypetr/backtest-kit/tree/master/example) — a fully working news-sentiment AI trading system with LLM forecasting, multi-timeframe data, and a documented February 2026 backtest. Start there instead of from scratch.
|
|
16
18
|
|
|
17
19
|
## ✨ Features
|
|
18
20
|
|
|
@@ -742,7 +744,9 @@ npx @backtest-kit/cli --pine ./math/impulse_trend_15m.pine
|
|
|
742
744
|
|
|
743
745
|
## 🎨 Visual Pine Script Editor
|
|
744
746
|
|
|
745
|
-
|
|
747
|
+

|
|
748
|
+
|
|
749
|
+
`@backtest-kit/cli` ships a browser-based Pine Script editor powered by `@backtest-kit/ui`. It lets you write, run, and iterate on indicators interactively — with a live chart that updates as you hit **▶ Run**
|
|
746
750
|
|
|
747
751
|
### Usage
|
|
748
752
|
|
package/build/index.cjs
CHANGED
|
@@ -2631,7 +2631,7 @@ const main$d = async () => {
|
|
|
2631
2631
|
if (MODES.some((mode) => values[mode])) {
|
|
2632
2632
|
return;
|
|
2633
2633
|
}
|
|
2634
|
-
process.stdout.write(`@backtest-kit/cli ${"
|
|
2634
|
+
process.stdout.write(`@backtest-kit/cli ${"7.0.0"}\n`);
|
|
2635
2635
|
process.stdout.write("\n");
|
|
2636
2636
|
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
2637
2637
|
process.stdout.write("\n");
|
|
@@ -2963,12 +2963,15 @@ const main$4 = async () => {
|
|
|
2963
2963
|
process.exit(1);
|
|
2964
2964
|
}
|
|
2965
2965
|
await cli.moduleConnectionService.loadModule("./editor.module");
|
|
2966
|
+
{
|
|
2967
|
+
await cli.exchangeSchemaService.addSchema();
|
|
2968
|
+
}
|
|
2966
2969
|
const { CC_WWWROOT_HOST, CC_WWWROOT_PORT } = getEnv();
|
|
2967
2970
|
const unServer = BacktestKitUi.serve(CC_WWWROOT_HOST, CC_WWWROOT_PORT, cli.resolveService.PROJECT_ROOT_DIR);
|
|
2968
2971
|
try {
|
|
2969
2972
|
await open(`http://localhost:${CC_WWWROOT_PORT}?pine=1`);
|
|
2970
2973
|
}
|
|
2971
|
-
|
|
2974
|
+
finally {
|
|
2972
2975
|
console.log(`Editor launched: http://localhost:${CC_WWWROOT_PORT}?pine=1`);
|
|
2973
2976
|
}
|
|
2974
2977
|
const beforeExit = () => {
|
|
@@ -3288,7 +3291,7 @@ const main$1 = async () => {
|
|
|
3288
3291
|
if (!values.help) {
|
|
3289
3292
|
return;
|
|
3290
3293
|
}
|
|
3291
|
-
process.stdout.write(`@backtest-kit/cli ${"
|
|
3294
|
+
process.stdout.write(`@backtest-kit/cli ${"7.0.0"}\n\n`);
|
|
3292
3295
|
process.stdout.write(HELP_TEXT);
|
|
3293
3296
|
process.exit(0);
|
|
3294
3297
|
};
|
|
@@ -3302,7 +3305,7 @@ const main = async () => {
|
|
|
3302
3305
|
if (!values.version) {
|
|
3303
3306
|
return;
|
|
3304
3307
|
}
|
|
3305
|
-
process.stdout.write(`@backtest-kit/cli ${"
|
|
3308
|
+
process.stdout.write(`@backtest-kit/cli ${"7.0.0"}\n`);
|
|
3306
3309
|
process.exit(0);
|
|
3307
3310
|
};
|
|
3308
3311
|
main();
|
package/build/index.mjs
CHANGED
|
@@ -2602,7 +2602,7 @@ const main$d = async () => {
|
|
|
2602
2602
|
if (MODES.some((mode) => values[mode])) {
|
|
2603
2603
|
return;
|
|
2604
2604
|
}
|
|
2605
|
-
process.stdout.write(`@backtest-kit/cli ${"
|
|
2605
|
+
process.stdout.write(`@backtest-kit/cli ${"7.0.0"}\n`);
|
|
2606
2606
|
process.stdout.write("\n");
|
|
2607
2607
|
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
2608
2608
|
process.stdout.write("\n");
|
|
@@ -2934,12 +2934,15 @@ const main$4 = async () => {
|
|
|
2934
2934
|
process.exit(1);
|
|
2935
2935
|
}
|
|
2936
2936
|
await cli.moduleConnectionService.loadModule("./editor.module");
|
|
2937
|
+
{
|
|
2938
|
+
await cli.exchangeSchemaService.addSchema();
|
|
2939
|
+
}
|
|
2937
2940
|
const { CC_WWWROOT_HOST, CC_WWWROOT_PORT } = getEnv();
|
|
2938
2941
|
const unServer = serve(CC_WWWROOT_HOST, CC_WWWROOT_PORT, cli.resolveService.PROJECT_ROOT_DIR);
|
|
2939
2942
|
try {
|
|
2940
2943
|
await open(`http://localhost:${CC_WWWROOT_PORT}?pine=1`);
|
|
2941
2944
|
}
|
|
2942
|
-
|
|
2945
|
+
finally {
|
|
2943
2946
|
console.log(`Editor launched: http://localhost:${CC_WWWROOT_PORT}?pine=1`);
|
|
2944
2947
|
}
|
|
2945
2948
|
const beforeExit = () => {
|
|
@@ -3259,7 +3262,7 @@ const main$1 = async () => {
|
|
|
3259
3262
|
if (!values.help) {
|
|
3260
3263
|
return;
|
|
3261
3264
|
}
|
|
3262
|
-
process.stdout.write(`@backtest-kit/cli ${"
|
|
3265
|
+
process.stdout.write(`@backtest-kit/cli ${"7.0.0"}\n\n`);
|
|
3263
3266
|
process.stdout.write(HELP_TEXT);
|
|
3264
3267
|
process.exit(0);
|
|
3265
3268
|
};
|
|
@@ -3273,7 +3276,7 @@ const main = async () => {
|
|
|
3273
3276
|
if (!values.version) {
|
|
3274
3277
|
return;
|
|
3275
3278
|
}
|
|
3276
|
-
process.stdout.write(`@backtest-kit/cli ${"
|
|
3279
|
+
process.stdout.write(`@backtest-kit/cli ${"7.0.0"}\n`);
|
|
3277
3280
|
process.exit(0);
|
|
3278
3281
|
};
|
|
3279
3282
|
main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backtest-kit/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.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",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"url": "http://paypal.me/tripolskypetr"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"homepage": "https://backtest-kit.github.io/documents/
|
|
15
|
+
"homepage": "https://backtest-kit.github.io/documents/article_07_ai_news_trading_signals.html",
|
|
16
16
|
"keywords": [
|
|
17
17
|
"backtest",
|
|
18
18
|
"backtesting",
|
|
@@ -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/graph": "
|
|
65
|
-
"@backtest-kit/ollama": "
|
|
66
|
-
"@backtest-kit/pinets": "
|
|
67
|
-
"@backtest-kit/signals": "
|
|
68
|
-
"@backtest-kit/ui": "
|
|
64
|
+
"@backtest-kit/graph": "7.0.0",
|
|
65
|
+
"@backtest-kit/ollama": "7.0.0",
|
|
66
|
+
"@backtest-kit/pinets": "7.0.0",
|
|
67
|
+
"@backtest-kit/signals": "7.0.0",
|
|
68
|
+
"@backtest-kit/ui": "7.0.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": "
|
|
76
|
+
"backtest-kit": "7.0.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/graph": "^
|
|
92
|
-
"@backtest-kit/ollama": "^
|
|
93
|
-
"@backtest-kit/pinets": "^
|
|
94
|
-
"@backtest-kit/signals": "^
|
|
95
|
-
"@backtest-kit/ui": "^
|
|
96
|
-
"backtest-kit": "^
|
|
91
|
+
"@backtest-kit/graph": "^7.0.0",
|
|
92
|
+
"@backtest-kit/ollama": "^7.0.0",
|
|
93
|
+
"@backtest-kit/pinets": "^7.0.0",
|
|
94
|
+
"@backtest-kit/signals": "^7.0.0",
|
|
95
|
+
"@backtest-kit/ui": "^7.0.0",
|
|
96
|
+
"backtest-kit": "^7.0.0",
|
|
97
97
|
"markdown-it": "^14.1.1",
|
|
98
98
|
"typescript": "^5.0.0"
|
|
99
99
|
},
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "{{PROJECT_NAME}}",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
4
|
+
"description": "Backtest Kit trading bot project",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"homepage": "https://backtest-kit.github.io/documents/article_07_ai_news_trading_signals.html",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"start": "node ./node_modules/@backtest-kit/cli/build/index.mjs",
|
|
8
9
|
"sync:lib": "node ./scripts/fetch_docs.mjs"
|
|
@@ -12,12 +13,12 @@
|
|
|
12
13
|
"license": "ISC",
|
|
13
14
|
"type": "commonjs",
|
|
14
15
|
"dependencies": {
|
|
15
|
-
"@backtest-kit/cli": "^
|
|
16
|
-
"@backtest-kit/graph": "^
|
|
17
|
-
"@backtest-kit/pinets": "^
|
|
18
|
-
"@backtest-kit/ui": "^
|
|
16
|
+
"@backtest-kit/cli": "^7.0.0",
|
|
17
|
+
"@backtest-kit/graph": "^7.0.0",
|
|
18
|
+
"@backtest-kit/pinets": "^7.0.0",
|
|
19
|
+
"@backtest-kit/ui": "^7.0.0",
|
|
19
20
|
"agent-swarm-kit": "^2.5.1",
|
|
20
|
-
"backtest-kit": "^
|
|
21
|
+
"backtest-kit": "^7.0.0",
|
|
21
22
|
"functools-kit": "^2.2.0",
|
|
22
23
|
"garch": "^1.2.3",
|
|
23
24
|
"get-moment-stamp": "^1.1.2",
|