@backtest-kit/signals 3.0.0 → 3.0.2

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 CHANGED
@@ -1,3 +1,5 @@
1
+ <img src="https://github.com/tripolskypetr/backtest-kit/raw/refs/heads/master/assets/chronos.svg" height="45px" align="right">
2
+
1
3
  # 📊 @backtest-kit/signals
2
4
 
3
5
  > Technical analysis and trading signal generation library for AI-powered trading systems. Computes 50+ indicators across 4 timeframes and generates markdown reports for LLM consumption.
package/build/index.cjs CHANGED
@@ -4536,6 +4536,7 @@ init();
4536
4536
  */
4537
4537
  const fetchHourHistory = backtestKit.Cache.fn(signal.hourCandleHistoryService.getReport, {
4538
4538
  interval: "30m",
4539
+ key: ([symbol]) => `${symbol}`,
4539
4540
  });
4540
4541
  /**
4541
4542
  * Cached function to fetch 30-minute candle history report.
@@ -4543,6 +4544,7 @@ const fetchHourHistory = backtestKit.Cache.fn(signal.hourCandleHistoryService.ge
4543
4544
  */
4544
4545
  const fetchThirtyMinuteHistory = backtestKit.Cache.fn(signal.thirtyMinuteCandleHistoryService.getReport, {
4545
4546
  interval: "15m",
4547
+ key: ([symbol]) => `${symbol}`,
4546
4548
  });
4547
4549
  /**
4548
4550
  * Cached function to fetch 15-minute candle history report.
@@ -4550,6 +4552,7 @@ const fetchThirtyMinuteHistory = backtestKit.Cache.fn(signal.thirtyMinuteCandleH
4550
4552
  */
4551
4553
  const fetchFifteenMinuteHistory = backtestKit.Cache.fn(signal.fifteenMinuteCandleHistoryService.getReport, {
4552
4554
  interval: "5m",
4555
+ key: ([symbol]) => `${symbol}`,
4553
4556
  });
4554
4557
  /**
4555
4558
  * Cached function to fetch 1-minute candle history report.
@@ -4557,6 +4560,7 @@ const fetchFifteenMinuteHistory = backtestKit.Cache.fn(signal.fifteenMinuteCandl
4557
4560
  */
4558
4561
  const fetchOneMinuteHistory = backtestKit.Cache.fn(signal.oneMinuteCandleHistoryService.getReport, {
4559
4562
  interval: "1m",
4563
+ key: ([symbol]) => `${symbol}`,
4560
4564
  });
4561
4565
  /**
4562
4566
  * Commits 1-hour candle history report to history container.
@@ -4712,6 +4716,7 @@ const commitOneMinuteHistory = functoolsKit.trycatch(async (symbol, history) =>
4712
4716
  */
4713
4717
  const fetchMicroTermMath = backtestKit.Cache.fn(signal.microTermMathService.getReport, {
4714
4718
  interval: "1m",
4719
+ key: ([symbol]) => `${symbol}`,
4715
4720
  });
4716
4721
  /**
4717
4722
  * Cached function to fetch ShortTerm (15-minute) technical analysis report.
@@ -4719,6 +4724,7 @@ const fetchMicroTermMath = backtestKit.Cache.fn(signal.microTermMathService.getR
4719
4724
  */
4720
4725
  const fetchShortTermMath = backtestKit.Cache.fn(signal.shortTermMathService.getReport, {
4721
4726
  interval: "5m",
4727
+ key: ([symbol]) => `${symbol}`,
4722
4728
  });
4723
4729
  /**
4724
4730
  * Cached function to fetch SwingTerm (30-minute) technical analysis report.
@@ -4726,6 +4732,7 @@ const fetchShortTermMath = backtestKit.Cache.fn(signal.shortTermMathService.getR
4726
4732
  */
4727
4733
  const fetchSwingTermMath = backtestKit.Cache.fn(signal.swingTermMathService.getReport, {
4728
4734
  interval: "15m",
4735
+ key: ([symbol]) => `${symbol}`,
4729
4736
  });
4730
4737
  /**
4731
4738
  * Cached function to fetch LongTerm (1-hour) technical analysis report.
@@ -4733,6 +4740,7 @@ const fetchSwingTermMath = backtestKit.Cache.fn(signal.swingTermMathService.getR
4733
4740
  */
4734
4741
  const fetchLongTermMath = backtestKit.Cache.fn(signal.longTermMathService.getReport, {
4735
4742
  interval: "30m",
4743
+ key: ([symbol]) => `${symbol}`,
4736
4744
  });
4737
4745
  /**
4738
4746
  * Commits MicroTerm (1-minute) technical analysis report to history container.
@@ -4915,6 +4923,7 @@ const commitSwingTermMath = functoolsKit.trycatch(async (symbol, history) => {
4915
4923
  */
4916
4924
  const fetchBookData = backtestKit.Cache.fn(signal.bookDataMathService.getReport, {
4917
4925
  interval: "5m",
4926
+ key: ([symbol]) => `${symbol}`,
4918
4927
  });
4919
4928
  /**
4920
4929
  * Commits order book analysis report to history container.
package/build/index.mjs CHANGED
@@ -4534,6 +4534,7 @@ init();
4534
4534
  */
4535
4535
  const fetchHourHistory = Cache.fn(signal.hourCandleHistoryService.getReport, {
4536
4536
  interval: "30m",
4537
+ key: ([symbol]) => `${symbol}`,
4537
4538
  });
4538
4539
  /**
4539
4540
  * Cached function to fetch 30-minute candle history report.
@@ -4541,6 +4542,7 @@ const fetchHourHistory = Cache.fn(signal.hourCandleHistoryService.getReport, {
4541
4542
  */
4542
4543
  const fetchThirtyMinuteHistory = Cache.fn(signal.thirtyMinuteCandleHistoryService.getReport, {
4543
4544
  interval: "15m",
4545
+ key: ([symbol]) => `${symbol}`,
4544
4546
  });
4545
4547
  /**
4546
4548
  * Cached function to fetch 15-minute candle history report.
@@ -4548,6 +4550,7 @@ const fetchThirtyMinuteHistory = Cache.fn(signal.thirtyMinuteCandleHistoryServic
4548
4550
  */
4549
4551
  const fetchFifteenMinuteHistory = Cache.fn(signal.fifteenMinuteCandleHistoryService.getReport, {
4550
4552
  interval: "5m",
4553
+ key: ([symbol]) => `${symbol}`,
4551
4554
  });
4552
4555
  /**
4553
4556
  * Cached function to fetch 1-minute candle history report.
@@ -4555,6 +4558,7 @@ const fetchFifteenMinuteHistory = Cache.fn(signal.fifteenMinuteCandleHistoryServ
4555
4558
  */
4556
4559
  const fetchOneMinuteHistory = Cache.fn(signal.oneMinuteCandleHistoryService.getReport, {
4557
4560
  interval: "1m",
4561
+ key: ([symbol]) => `${symbol}`,
4558
4562
  });
4559
4563
  /**
4560
4564
  * Commits 1-hour candle history report to history container.
@@ -4710,6 +4714,7 @@ const commitOneMinuteHistory = trycatch(async (symbol, history) => {
4710
4714
  */
4711
4715
  const fetchMicroTermMath = Cache.fn(signal.microTermMathService.getReport, {
4712
4716
  interval: "1m",
4717
+ key: ([symbol]) => `${symbol}`,
4713
4718
  });
4714
4719
  /**
4715
4720
  * Cached function to fetch ShortTerm (15-minute) technical analysis report.
@@ -4717,6 +4722,7 @@ const fetchMicroTermMath = Cache.fn(signal.microTermMathService.getReport, {
4717
4722
  */
4718
4723
  const fetchShortTermMath = Cache.fn(signal.shortTermMathService.getReport, {
4719
4724
  interval: "5m",
4725
+ key: ([symbol]) => `${symbol}`,
4720
4726
  });
4721
4727
  /**
4722
4728
  * Cached function to fetch SwingTerm (30-minute) technical analysis report.
@@ -4724,6 +4730,7 @@ const fetchShortTermMath = Cache.fn(signal.shortTermMathService.getReport, {
4724
4730
  */
4725
4731
  const fetchSwingTermMath = Cache.fn(signal.swingTermMathService.getReport, {
4726
4732
  interval: "15m",
4733
+ key: ([symbol]) => `${symbol}`,
4727
4734
  });
4728
4735
  /**
4729
4736
  * Cached function to fetch LongTerm (1-hour) technical analysis report.
@@ -4731,6 +4738,7 @@ const fetchSwingTermMath = Cache.fn(signal.swingTermMathService.getReport, {
4731
4738
  */
4732
4739
  const fetchLongTermMath = Cache.fn(signal.longTermMathService.getReport, {
4733
4740
  interval: "30m",
4741
+ key: ([symbol]) => `${symbol}`,
4734
4742
  });
4735
4743
  /**
4736
4744
  * Commits MicroTerm (1-minute) technical analysis report to history container.
@@ -4913,6 +4921,7 @@ const commitSwingTermMath = trycatch(async (symbol, history) => {
4913
4921
  */
4914
4922
  const fetchBookData = Cache.fn(signal.bookDataMathService.getReport, {
4915
4923
  interval: "5m",
4924
+ key: ([symbol]) => `${symbol}`,
4916
4925
  });
4917
4926
  /**
4918
4927
  * Commits order book analysis report to history container.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backtest-kit/signals",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Technical analysis and trading signal generation library for AI-powered trading systems. Computes 50+ indicators across 4 timeframes and generates markdown reports for LLM consumption.",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -69,12 +69,12 @@
69
69
  "worker-testbed": "1.0.12"
70
70
  },
71
71
  "peerDependencies": {
72
- "backtest-kit": "^3.0.5",
72
+ "backtest-kit": "^3.0.9",
73
73
  "typescript": "^5.0.0"
74
74
  },
75
75
  "dependencies": {
76
76
  "di-kit": "^1.0.18",
77
- "di-scoped": "^1.0.20",
77
+ "di-scoped": "^1.0.21",
78
78
  "functools-kit": "^1.0.95",
79
79
  "trading-signals": "^6.9.1",
80
80
  "get-moment-stamp": "^1.1.1",