backtest-kit 1.5.18 → 1.5.20

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 CHANGED
@@ -2075,7 +2075,7 @@ const GET_SIGNAL_FN = functoolsKit.trycatch(async (self) => {
2075
2075
  // НЕМЕДЛЕННАЯ АКТИВАЦИЯ: priceOpen уже достигнут
2076
2076
  // Создаем активный сигнал напрямую (БЕЗ scheduled фазы)
2077
2077
  const signalRow = {
2078
- id: functoolsKit.randomString(),
2078
+ id: signal.id || functoolsKit.randomString(),
2079
2079
  priceOpen: signal.priceOpen, // Используем priceOpen из сигнала
2080
2080
  position: signal.position,
2081
2081
  note: toPlainString(signal.note),
@@ -2095,7 +2095,7 @@ const GET_SIGNAL_FN = functoolsKit.trycatch(async (self) => {
2095
2095
  }
2096
2096
  // ОЖИДАНИЕ АКТИВАЦИИ: создаем scheduled signal (risk check при активации)
2097
2097
  const scheduledSignalRow = {
2098
- id: functoolsKit.randomString(),
2098
+ id: signal.id || functoolsKit.randomString(),
2099
2099
  priceOpen: signal.priceOpen,
2100
2100
  position: signal.position,
2101
2101
  note: toPlainString(signal.note),
@@ -2114,7 +2114,7 @@ const GET_SIGNAL_FN = functoolsKit.trycatch(async (self) => {
2114
2114
  return scheduledSignalRow;
2115
2115
  }
2116
2116
  const signalRow = {
2117
- id: functoolsKit.randomString(),
2117
+ id: signal.id || functoolsKit.randomString(),
2118
2118
  priceOpen: currentPrice,
2119
2119
  ...signal,
2120
2120
  note: toPlainString(signal.note),
package/build/index.mjs CHANGED
@@ -2073,7 +2073,7 @@ const GET_SIGNAL_FN = trycatch(async (self) => {
2073
2073
  // НЕМЕДЛЕННАЯ АКТИВАЦИЯ: priceOpen уже достигнут
2074
2074
  // Создаем активный сигнал напрямую (БЕЗ scheduled фазы)
2075
2075
  const signalRow = {
2076
- id: randomString(),
2076
+ id: signal.id || randomString(),
2077
2077
  priceOpen: signal.priceOpen, // Используем priceOpen из сигнала
2078
2078
  position: signal.position,
2079
2079
  note: toPlainString(signal.note),
@@ -2093,7 +2093,7 @@ const GET_SIGNAL_FN = trycatch(async (self) => {
2093
2093
  }
2094
2094
  // ОЖИДАНИЕ АКТИВАЦИИ: создаем scheduled signal (risk check при активации)
2095
2095
  const scheduledSignalRow = {
2096
- id: randomString(),
2096
+ id: signal.id || randomString(),
2097
2097
  priceOpen: signal.priceOpen,
2098
2098
  position: signal.position,
2099
2099
  note: toPlainString(signal.note),
@@ -2112,7 +2112,7 @@ const GET_SIGNAL_FN = trycatch(async (self) => {
2112
2112
  return scheduledSignalRow;
2113
2113
  }
2114
2114
  const signalRow = {
2115
- id: randomString(),
2115
+ id: signal.id || randomString(),
2116
2116
  priceOpen: currentPrice,
2117
2117
  ...signal,
2118
2118
  note: toPlainString(signal.note),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backtest-kit",
3
- "version": "1.5.18",
3
+ "version": "1.5.20",
4
4
  "description": "A TypeScript library for trading system backtest",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -75,7 +75,6 @@
75
75
  "di-kit": "^1.0.18",
76
76
  "di-scoped": "^1.0.20",
77
77
  "functools-kit": "^1.0.94",
78
- "get-moment-stamp": "^1.1.1",
79
- "ollama": "^0.6.3"
78
+ "get-moment-stamp": "^1.1.1"
80
79
  }
81
80
  }