@backtest-kit/cli 6.1.2 → 6.1.4
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 +23 -7
- package/build/index.mjs +23 -7
- package/package.json +1 -1
- package/template/project/package.mustache +1 -1
package/build/index.cjs
CHANGED
|
@@ -2215,6 +2215,21 @@ const cli = {
|
|
|
2215
2215
|
};
|
|
2216
2216
|
init();
|
|
2217
2217
|
|
|
2218
|
+
const MODES = ["backtest", "paper", "live", "pine", "dump", "init", "help", "version"];
|
|
2219
|
+
const main$a = async () => {
|
|
2220
|
+
if (!getEntry((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))) {
|
|
2221
|
+
return;
|
|
2222
|
+
}
|
|
2223
|
+
const { values } = getArgs();
|
|
2224
|
+
if (MODES.some((mode) => values[mode])) {
|
|
2225
|
+
return;
|
|
2226
|
+
}
|
|
2227
|
+
process.stdout.write(`@backtest-kit/cli ${"6.1.1"}\n`);
|
|
2228
|
+
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
2229
|
+
process.exit(0);
|
|
2230
|
+
};
|
|
2231
|
+
main$a();
|
|
2232
|
+
|
|
2218
2233
|
const notifyShutdown = functoolsKit.singleshot(async () => {
|
|
2219
2234
|
console.log("Graceful shutdown initiated. Press Ctrl+C again to force quit.");
|
|
2220
2235
|
});
|
|
@@ -2603,6 +2618,7 @@ const main$2 = async () => {
|
|
|
2603
2618
|
};
|
|
2604
2619
|
main$2();
|
|
2605
2620
|
|
|
2621
|
+
const ENTRY_PATH = "./node_modules/@backtest-kit/cli/build/index.mjs";
|
|
2606
2622
|
const HELP_TEXT = `
|
|
2607
2623
|
@backtest-kit/cli
|
|
2608
2624
|
|
|
@@ -2693,13 +2709,13 @@ Environment variables:
|
|
|
2693
2709
|
|
|
2694
2710
|
Examples:
|
|
2695
2711
|
|
|
2696
|
-
node
|
|
2697
|
-
node
|
|
2698
|
-
node
|
|
2699
|
-
node
|
|
2700
|
-
node
|
|
2701
|
-
node
|
|
2702
|
-
node
|
|
2712
|
+
node ${ENTRY_PATH} --backtest ./content/feb_2026.strategy.ts
|
|
2713
|
+
node ${ENTRY_PATH} --backtest --symbol BTCUSDT --noCache --ui ./content/feb_2026.strategy.ts
|
|
2714
|
+
node ${ENTRY_PATH} --paper --symbol ETHUSDT ./content/feb_2026.strategy.ts
|
|
2715
|
+
node ${ENTRY_PATH} --live --ui --telegram ./content/feb_2026.strategy.ts
|
|
2716
|
+
node ${ENTRY_PATH} --pine ./math/feb_2026.pine --timeframe 15m --limit 500 --jsonl
|
|
2717
|
+
node ${ENTRY_PATH} --dump --symbol BTCUSDT --timeframe 15m --limit 500 --jsonl
|
|
2718
|
+
node ${ENTRY_PATH} --init --output my-trading-bot
|
|
2703
2719
|
`.trimStart();
|
|
2704
2720
|
const main$1 = async () => {
|
|
2705
2721
|
if (!getEntry((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))) {
|
package/build/index.mjs
CHANGED
|
@@ -2186,6 +2186,21 @@ const cli = {
|
|
|
2186
2186
|
};
|
|
2187
2187
|
init();
|
|
2188
2188
|
|
|
2189
|
+
const MODES = ["backtest", "paper", "live", "pine", "dump", "init", "help", "version"];
|
|
2190
|
+
const main$a = async () => {
|
|
2191
|
+
if (!getEntry(import.meta.url)) {
|
|
2192
|
+
return;
|
|
2193
|
+
}
|
|
2194
|
+
const { values } = getArgs();
|
|
2195
|
+
if (MODES.some((mode) => values[mode])) {
|
|
2196
|
+
return;
|
|
2197
|
+
}
|
|
2198
|
+
process.stdout.write(`@backtest-kit/cli ${"6.1.1"}\n`);
|
|
2199
|
+
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
2200
|
+
process.exit(0);
|
|
2201
|
+
};
|
|
2202
|
+
main$a();
|
|
2203
|
+
|
|
2189
2204
|
const notifyShutdown = singleshot(async () => {
|
|
2190
2205
|
console.log("Graceful shutdown initiated. Press Ctrl+C again to force quit.");
|
|
2191
2206
|
});
|
|
@@ -2574,6 +2589,7 @@ const main$2 = async () => {
|
|
|
2574
2589
|
};
|
|
2575
2590
|
main$2();
|
|
2576
2591
|
|
|
2592
|
+
const ENTRY_PATH = "./node_modules/@backtest-kit/cli/build/index.mjs";
|
|
2577
2593
|
const HELP_TEXT = `
|
|
2578
2594
|
@backtest-kit/cli
|
|
2579
2595
|
|
|
@@ -2664,13 +2680,13 @@ Environment variables:
|
|
|
2664
2680
|
|
|
2665
2681
|
Examples:
|
|
2666
2682
|
|
|
2667
|
-
node
|
|
2668
|
-
node
|
|
2669
|
-
node
|
|
2670
|
-
node
|
|
2671
|
-
node
|
|
2672
|
-
node
|
|
2673
|
-
node
|
|
2683
|
+
node ${ENTRY_PATH} --backtest ./content/feb_2026.strategy.ts
|
|
2684
|
+
node ${ENTRY_PATH} --backtest --symbol BTCUSDT --noCache --ui ./content/feb_2026.strategy.ts
|
|
2685
|
+
node ${ENTRY_PATH} --paper --symbol ETHUSDT ./content/feb_2026.strategy.ts
|
|
2686
|
+
node ${ENTRY_PATH} --live --ui --telegram ./content/feb_2026.strategy.ts
|
|
2687
|
+
node ${ENTRY_PATH} --pine ./math/feb_2026.pine --timeframe 15m --limit 500 --jsonl
|
|
2688
|
+
node ${ENTRY_PATH} --dump --symbol BTCUSDT --timeframe 15m --limit 500 --jsonl
|
|
2689
|
+
node ${ENTRY_PATH} --init --output my-trading-bot
|
|
2674
2690
|
`.trimStart();
|
|
2675
2691
|
const main$1 = async () => {
|
|
2676
2692
|
if (!getEntry(import.meta.url)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backtest-kit/cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.4",
|
|
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",
|