backtest-kit 11.7.0 → 11.9.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 +3 -3
- package/build/index.cjs +624 -173
- package/build/index.mjs +624 -174
- package/package.json +1 -1
- package/types.d.ts +304 -51
package/README.md
CHANGED
|
@@ -1300,7 +1300,7 @@ import { Cron, Backtest } from "backtest-kit";
|
|
|
1300
1300
|
Cron.register({
|
|
1301
1301
|
name: "tg-signal-parser",
|
|
1302
1302
|
interval: "1h",
|
|
1303
|
-
handler: async (symbol, when, backtest) => {
|
|
1303
|
+
handler: async ({ symbol, when, backtest }) => {
|
|
1304
1304
|
await parseTelegramSignalsToMongo(when);
|
|
1305
1305
|
},
|
|
1306
1306
|
});
|
|
@@ -1310,7 +1310,7 @@ Cron.register({
|
|
|
1310
1310
|
name: "fetch-funding",
|
|
1311
1311
|
interval: "1h",
|
|
1312
1312
|
symbols: ["BTCUSDT", "ETHUSDT"],
|
|
1313
|
-
handler: async (symbol, when, backtest) => {
|
|
1313
|
+
handler: async ({ symbol, when, backtest }) => {
|
|
1314
1314
|
await fetchFundingRate(symbol, when);
|
|
1315
1315
|
},
|
|
1316
1316
|
});
|
|
@@ -1318,7 +1318,7 @@ Cron.register({
|
|
|
1318
1318
|
// Fire-once warm-up — runs once globally on the very first tick.
|
|
1319
1319
|
Cron.register({
|
|
1320
1320
|
name: "warm-cache",
|
|
1321
|
-
handler: async (symbol, when, backtest) => {
|
|
1321
|
+
handler: async ({ symbol, when, backtest }) => {
|
|
1322
1322
|
await warmupCache();
|
|
1323
1323
|
},
|
|
1324
1324
|
});
|