backtest-kit 15.1.0 → 15.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backtest-kit",
3
- "version": "15.1.0",
3
+ "version": "15.3.0",
4
4
  "description": "A TypeScript library for trading system backtest",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -78,7 +78,7 @@
78
78
  "di-scoped": "^1.0.21",
79
79
  "di-singleton": "^1.0.5",
80
80
  "functools-kit": "^4.0.0",
81
- "get-moment-stamp": "^2.0.0"
81
+ "get-moment-stamp": "^3.0.0"
82
82
  },
83
83
  "publishConfig": {
84
84
  "access": "public"
package/types.d.ts CHANGED
@@ -7423,6 +7423,16 @@ declare const GLOBAL_CONFIG: {
7423
7423
  * Default: 500 notifications
7424
7424
  */
7425
7425
  CC_MAX_NOTIFICATIONS: number;
7426
+ /**
7427
+ * Minimum interval between `order_sync.check` notifications for a single signalId.
7428
+ * Order-ping events (syncPendingSubject) fire on every live tick, so the
7429
+ * NotificationAdapter throttles them: a signal produces at most one check
7430
+ * notification per this interval. The throttle entry is removed when the
7431
+ * signal is closed or cancelled.
7432
+ *
7433
+ * Default: 900000 ms (15 minutes)
7434
+ */
7435
+ CC_NOTIFICATION_ORDER_CHECK_TTL: number;
7426
7436
  /**
7427
7437
  * Maximum number of signals to keep in storage.
7428
7438
  * Older signals are removed when this limit is exceeded.
@@ -7634,6 +7644,7 @@ declare function getConfig(): {
7634
7644
  CC_WALKER_MARKDOWN_TOP_N: number;
7635
7645
  CC_MAX_PERFORMANCE_MARKDOWN_ROWS: number;
7636
7646
  CC_MAX_NOTIFICATIONS: number;
7647
+ CC_NOTIFICATION_ORDER_CHECK_TTL: number;
7637
7648
  CC_MAX_SIGNALS: number;
7638
7649
  CC_MAX_LOG_LINES: number;
7639
7650
  CC_ENABLE_CANDLE_FETCH_MUTEX: boolean;
@@ -7693,6 +7704,7 @@ declare function getDefaultConfig(): Readonly<{
7693
7704
  CC_WALKER_MARKDOWN_TOP_N: number;
7694
7705
  CC_MAX_PERFORMANCE_MARKDOWN_ROWS: number;
7695
7706
  CC_MAX_NOTIFICATIONS: number;
7707
+ CC_NOTIFICATION_ORDER_CHECK_TTL: number;
7696
7708
  CC_MAX_SIGNALS: number;
7697
7709
  CC_MAX_LOG_LINES: number;
7698
7710
  CC_ENABLE_CANDLE_FETCH_MUTEX: boolean;
@@ -12833,11 +12845,13 @@ interface TrailingTakeCommitNotification {
12833
12845
  }
12834
12846
  /**
12835
12847
  * Signal sync open notification.
12836
- * Emitted when a scheduled (limit order) signal is activated and the position is opened.
12848
+ * Emitted when the position order is filled (`orderType: "active"` immediate open
12849
+ * or activation fill of a resting order) or when the resting entry order is placed
12850
+ * at scheduled-signal creation (`orderType: "schedule"`).
12837
12851
  */
12838
12852
  interface OrderSyncOpenNotification {
12839
12853
  /** Discriminator for type-safe union */
12840
- type: "signal_sync.open";
12854
+ type: "order_sync.open";
12841
12855
  /** Unique notification identifier */
12842
12856
  id: string;
12843
12857
  /** Unix timestamp in milliseconds when signal was opened */
@@ -12852,6 +12866,12 @@ interface OrderSyncOpenNotification {
12852
12866
  exchangeName: ExchangeName;
12853
12867
  /** Unique signal identifier (UUID v4) */
12854
12868
  signalId: string;
12869
+ /**
12870
+ * Which order this sync event is about (from OrderSyncContract.type):
12871
+ * - "active" — the position order was filled (immediate open or activation of a resting order)
12872
+ * - "schedule" — the resting entry order was placed at scheduled-signal creation (not a fill)
12873
+ */
12874
+ orderType: "schedule" | "active";
12855
12875
  /** Current market price at activation */
12856
12876
  currentPrice: number;
12857
12877
  /** Total PNL of the closed position (including all entries and partials) */
@@ -12925,7 +12945,7 @@ interface OrderSyncOpenNotification {
12925
12945
  */
12926
12946
  interface OrderSyncCloseNotification {
12927
12947
  /** Discriminator for type-safe union */
12928
- type: "signal_sync.close";
12948
+ type: "order_sync.close";
12929
12949
  /** Unique notification identifier */
12930
12950
  id: string;
12931
12951
  /** Unix timestamp in milliseconds when signal was closed */
@@ -12940,6 +12960,8 @@ interface OrderSyncCloseNotification {
12940
12960
  exchangeName: ExchangeName;
12941
12961
  /** Unique signal identifier (UUID v4) */
12942
12962
  signalId: string;
12963
+ /** Which order this sync event is about (from OrderSyncContract.type). Closes always go through the position order, so this is always "active". */
12964
+ orderType: "schedule" | "active";
12943
12965
  /** Current market price at close */
12944
12966
  currentPrice: number;
12945
12967
  /** Total PNL of the closed position (including all entries and partials) */
@@ -13007,6 +13029,103 @@ interface OrderSyncCloseNotification {
13007
13029
  /** Unix timestamp in milliseconds when the notification was created */
13008
13030
  createdAt: number;
13009
13031
  }
13032
+ /**
13033
+ * Signal sync check (order-ping) notification.
13034
+ * Emitted while a signal is being monitored in live mode: on every tick the framework
13035
+ * asks the external order management system whether the order backing the signal is
13036
+ * still open on the exchange (`syncPendingSubject` / OrderCheckContract).
13037
+ * Throttled by NotificationAdapter to at most one notification per signalId per
13038
+ * `CC_NOTIFICATION_ORDER_CHECK_TTL` (default 15 minutes); the throttle entry is dropped
13039
+ * when the signal is closed or cancelled.
13040
+ */
13041
+ interface OrderSyncCheckNotification {
13042
+ /** Discriminator for type-safe union */
13043
+ type: "order_sync.check";
13044
+ /** Unique notification identifier */
13045
+ id: string;
13046
+ /** Unix timestamp in milliseconds when the order ping was emitted */
13047
+ timestamp: number;
13048
+ /** Whether this notification is from backtest mode (true) or live mode (false); pings are live-only in practice */
13049
+ backtest: boolean;
13050
+ /** Trading pair symbol (e.g., "BTCUSDT") */
13051
+ symbol: string;
13052
+ /** Strategy name that generated this signal */
13053
+ strategyName: StrategyName;
13054
+ /** Exchange name where signal was executed */
13055
+ exchangeName: ExchangeName;
13056
+ /** Unique signal identifier (UUID v4) */
13057
+ signalId: string;
13058
+ /**
13059
+ * Which order is being monitored (from OrderCheckContract.type):
13060
+ * - "active" — the order backing an open position (pending signal)
13061
+ * - "schedule" — the resting entry order of a scheduled signal awaiting activation
13062
+ */
13063
+ orderType: "schedule" | "active";
13064
+ /** Market price at the moment of the ping (VWAP) */
13065
+ currentPrice: number;
13066
+ /** Trade direction: "long" (buy) or "short" (sell) */
13067
+ position: "long" | "short";
13068
+ /** Effective entry price (may differ from original after DCA averaging) */
13069
+ priceOpen: number;
13070
+ /** Effective take profit price (with trailing if set) */
13071
+ priceTakeProfit: number;
13072
+ /** Effective stop loss price (with trailing if set) */
13073
+ priceStopLoss: number;
13074
+ /** Original take profit price before any trailing adjustments */
13075
+ originalPriceTakeProfit: number;
13076
+ /** Original stop loss price before any trailing adjustments */
13077
+ originalPriceStopLoss: number;
13078
+ /** Original entry price at signal creation (unchanged by DCA averaging) */
13079
+ originalPriceOpen: number;
13080
+ /** Total number of DCA entries (_entry.length). 1 = no averaging. */
13081
+ totalEntries: number;
13082
+ /** Total number of partial closes executed (_partial.length). 0 = no partial closes done. */
13083
+ totalPartials: number;
13084
+ /** Unrealized PNL of the open position at the moment of the ping */
13085
+ pnl: IStrategyPnL;
13086
+ /** Peak profit achieved during the life of this position up to the moment of the ping */
13087
+ peakProfit: IStrategyPnL;
13088
+ /** Maximum drawdown experienced during the life of this position up to the moment of the ping */
13089
+ maxDrawdown: IStrategyPnL;
13090
+ /** Profit/loss as percentage (e.g., 1.5 for +1.5%, -2.3 for -2.3%) */
13091
+ pnlPercentage: number;
13092
+ /** Entry price from PNL calculation (effective price adjusted with slippage and fees) */
13093
+ pnlPriceOpen: number;
13094
+ /** Exit price from PNL calculation (adjusted with slippage and fees) */
13095
+ pnlPriceClose: number;
13096
+ /** Absolute profit/loss in USD */
13097
+ pnlCost: number;
13098
+ /** Total invested capital in USD */
13099
+ pnlEntries: number;
13100
+ /** Peak price reached in profit direction during the life of this position */
13101
+ peakProfitPriceOpen: number;
13102
+ /** Exit price for PNL calculation at the moment of peak profit */
13103
+ peakProfitPriceClose: number;
13104
+ /** Absolute profit/loss in USD at the moment the position reached its peak profit during the life of this position */
13105
+ peakProfitCost: number;
13106
+ /** Profit/loss as percentage at the moment the position reached its peak profit during the life of this position */
13107
+ peakProfitPercentage: number;
13108
+ /** Number of entries executed at the moment the position reached its peak profit during the life of this position */
13109
+ peakProfitEntries: number;
13110
+ /** Maximum drawdown price reached in loss direction during the life of this position */
13111
+ maxDrawdownPriceOpen: number;
13112
+ /** Exit price for PNL calculation at the moment of max drawdown */
13113
+ maxDrawdownPriceClose: number;
13114
+ /** Absolute profit/loss in USD at the moment the position reached its maximum drawdown during the life of this position */
13115
+ maxDrawdownCost: number;
13116
+ /** Profit/loss as percentage at the moment the position reached its maximum drawdown during the life of this position */
13117
+ maxDrawdownPercentage: number;
13118
+ /** Number of entries executed at the moment the position reached its maximum drawdown during the life of this position */
13119
+ maxDrawdownEntries: number;
13120
+ /** Signal creation timestamp in milliseconds (when signal was first created/scheduled) */
13121
+ scheduledAt: number;
13122
+ /** Pending timestamp in milliseconds (when position became pending/active at priceOpen) */
13123
+ pendingAt: number;
13124
+ /** Optional human-readable description of signal reason */
13125
+ note?: string;
13126
+ /** Unix timestamp in milliseconds when the notification was created */
13127
+ createdAt: number;
13128
+ }
13010
13129
  /**
13011
13130
  * Risk rejection notification.
13012
13131
  * Emitted when a signal is rejected due to risk management rules.
@@ -13493,7 +13612,7 @@ interface SignalInfoNotification {
13493
13612
  * }
13494
13613
  * ```
13495
13614
  */
13496
- type NotificationModel = SignalOpenedNotification | SignalClosedNotification | PartialProfitAvailableNotification | PartialLossAvailableNotification | BreakevenAvailableNotification | PartialProfitCommitNotification | PartialLossCommitNotification | BreakevenCommitNotification | AverageBuyCommitNotification | ActivateScheduledCommitNotification | TrailingStopCommitNotification | TrailingTakeCommitNotification | CancelScheduledCommitNotification | ClosePendingCommitNotification | OrderSyncOpenNotification | OrderSyncCloseNotification | RiskRejectionNotification | SignalScheduledNotification | SignalCancelledNotification | InfoErrorNotification | CriticalErrorNotification | ValidationErrorNotification | SignalInfoNotification;
13615
+ type NotificationModel = SignalOpenedNotification | SignalClosedNotification | PartialProfitAvailableNotification | PartialLossAvailableNotification | BreakevenAvailableNotification | PartialProfitCommitNotification | PartialLossCommitNotification | BreakevenCommitNotification | AverageBuyCommitNotification | ActivateScheduledCommitNotification | TrailingStopCommitNotification | TrailingTakeCommitNotification | CancelScheduledCommitNotification | ClosePendingCommitNotification | OrderSyncOpenNotification | OrderSyncCloseNotification | OrderSyncCheckNotification | RiskRejectionNotification | SignalScheduledNotification | SignalCancelledNotification | InfoErrorNotification | CriticalErrorNotification | ValidationErrorNotification | SignalInfoNotification;
13497
13616
 
13498
13617
  /**
13499
13618
  * Unified tick event data for report generation.
@@ -25966,7 +26085,7 @@ declare const RecentBacktest: RecentBacktestAdapter;
25966
26085
  * @example
25967
26086
  * // Subscribe only to signal lifecycle and error events
25968
26087
  * notificationAdapter.enable({ signal: true, common_error: true, critical_error: true, validation_error: true,
25969
- * partial_profit: false, partial_loss: false, breakeven: false, strategy_commit: false, signal_sync: false,
26088
+ * partial_profit: false, partial_loss: false, breakeven: false, strategy_commit: false, order_sync: false, order_check: false,
25970
26089
  * risk: false, info: false });
25971
26090
  */
25972
26091
  interface INotificationTarget {
@@ -26006,12 +26125,24 @@ interface INotificationTarget {
26006
26125
  */
26007
26126
  strategy_commit: boolean;
26008
26127
  /**
26009
- * Signal synchronization events for live trading (`signal_sync.open`, `signal_sync.close`).
26010
- * Fired when a limit order is confirmed filled (`signal-open`) or when an open
26011
- * position is confirmed exited (`signal-close`) by the exchange sync layer.
26128
+ * Signal synchronization events for live trading (`order_sync.open`, `order_sync.close`).
26129
+ * Fired when the position order is filled (`signal-open` with `orderType: "active"`),
26130
+ * when the resting entry order is placed at scheduled-signal creation (`signal-open`
26131
+ * with `orderType: "schedule"`), or when an open position is confirmed exited
26132
+ * (`signal-close`) by the exchange sync layer.
26012
26133
  * Source: `syncSubject` (OrderSyncContract).
26013
26134
  */
26014
- signal_sync: boolean;
26135
+ order_sync: boolean;
26136
+ /**
26137
+ * Order-ping check notifications (`order_sync.check`).
26138
+ * Fired while a signal is monitored in live mode, when the framework asks the
26139
+ * external order management system whether the order is still open on the
26140
+ * exchange. Throttled to at most one notification per signalId per
26141
+ * `CC_NOTIFICATION_ORDER_CHECK_TTL` (default 15 minutes); the throttle entry is
26142
+ * dropped when the signal is closed or cancelled.
26143
+ * Source: `syncPendingSubject` (OrderCheckContract).
26144
+ */
26145
+ order_check: boolean;
26015
26146
  /**
26016
26147
  * Risk manager rejection notifications (`risk.rejection`).
26017
26148
  * Fired when the risk manager blocks a new signal from opening due to
@@ -26081,6 +26212,11 @@ interface INotificationUtils {
26081
26212
  * @param data - The signal sync contract data
26082
26213
  */
26083
26214
  handleSync(data: OrderSyncContract): Promise<void>;
26215
+ /**
26216
+ * Handles order-ping check event (signal-ping).
26217
+ * @param data - The order check contract data
26218
+ */
26219
+ handleCheck(data: OrderCheckContract): Promise<void>;
26084
26220
  /**
26085
26221
  * Handles risk rejection event.
26086
26222
  * @param data - The risk contract data
@@ -26173,6 +26309,12 @@ declare class NotificationBacktestAdapter implements INotificationUtils {
26173
26309
  * @param data - The signal sync contract data
26174
26310
  */
26175
26311
  handleSync: (data: OrderSyncContract) => any;
26312
+ /**
26313
+ * Handles order-ping check event.
26314
+ * Proxies call to the underlying notification adapter.
26315
+ * @param data - The order check contract data
26316
+ */
26317
+ handleCheck: (data: OrderCheckContract) => any;
26176
26318
  /**
26177
26319
  * Handles risk rejection event.
26178
26320
  * Proxies call to the underlying notification adapter.
@@ -26294,6 +26436,12 @@ declare class NotificationLiveAdapter implements INotificationUtils {
26294
26436
  * @param data - The signal sync contract data
26295
26437
  */
26296
26438
  handleSync: (data: OrderSyncContract) => any;
26439
+ /**
26440
+ * Handles order-ping check event.
26441
+ * Proxies call to the underlying notification adapter.
26442
+ * @param data - The order check contract data
26443
+ */
26444
+ handleCheck: (data: OrderCheckContract) => any;
26297
26445
  /**
26298
26446
  * Handles risk rejection event.
26299
26447
  * Proxies call to the underlying notification adapter.
@@ -26374,7 +26522,7 @@ declare class NotificationAdapter {
26374
26522
  *
26375
26523
  * @returns Cleanup function that unsubscribes from all emitters
26376
26524
  */
26377
- enable: (({ signal, info, partial_profit, partial_loss, breakeven, strategy_commit, signal_sync, risk, common_error, critical_error, validation_error, }?: INotificationTarget) => () => void) & functools_kit.ISingleshotClearable<({ signal, info, partial_profit, partial_loss, breakeven, strategy_commit, signal_sync, risk, common_error, critical_error, validation_error, }?: INotificationTarget) => () => void>;
26525
+ enable: (({ signal, info, partial_profit, partial_loss, breakeven, strategy_commit, order_sync, order_check, risk, common_error, critical_error, validation_error, }?: INotificationTarget) => () => void) & functools_kit.ISingleshotClearable<({ signal, info, partial_profit, partial_loss, breakeven, strategy_commit, order_sync, order_check, risk, common_error, critical_error, validation_error, }?: INotificationTarget) => () => void>;
26378
26526
  /**
26379
26527
  * Disables notification storage by unsubscribing from all emitters.
26380
26528
  * Safe to call multiple times.
@@ -27844,9 +27992,17 @@ declare class CronUtils {
27844
27992
  *
27845
27993
  * Assembles the {@link IRuntimeInfo} snapshot via
27846
27994
  * `RuntimeMetaService.getRuntimeInfo(symbol, context, backtest)` and invokes
27847
- * `entry.handler(info)`. Logs any error via `console.error` and **returns** a
27848
- * `failed` boolean (`true` when the handler or the runtime-info assembly
27849
- * threw) so the caller (`_tick`) can roll back the periodic watermark of the
27995
+ * `entry.handler(info)`, racing both against the
27996
+ * {@link CRON_HANDLER_TIMEOUT} watchdog a slot that does not settle in time
27997
+ * rejects into the same `catch` as any other error, so a hung handler (or a
27998
+ * hung price fetch inside `getRuntimeInfo`) can never hold the `_inFlight`
27999
+ * slot forever and stall the serialised tick pipeline. A slot still running
28000
+ * at {@link CRON_HANDLER_WARN_TIMEOUT} logs an observational warning first,
28001
+ * so a slow handler is visible in the logs well before the watchdog forcibly
28002
+ * fails it. Logs any error via
28003
+ * `console.error` and **returns** a `failed` boolean (`true` when the
28004
+ * handler — or the runtime-info assembly — threw or timed out) so the caller
28005
+ * (`_tick`) can roll back the periodic watermark of the
27850
28006
  * slot it opened and retry that boundary. The error is **not** rethrown, so a
27851
28007
  * failing handler never produces an unhandled rejection. Clears the
27852
28008
  * `_inFlight` slot in `.finally()` so the next boundary produces a fresh
@@ -29472,6 +29628,8 @@ type BrokerOrderOpenPayload = {
29472
29628
  exchangeName: ExchangeName;
29473
29629
  frameName?: FrameName;
29474
29630
  };
29631
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
29632
+ when: Date;
29475
29633
  /** true when called during a backtest run — adapter should skip exchange calls */
29476
29634
  backtest: boolean;
29477
29635
  };
@@ -29531,6 +29689,8 @@ type BrokerOrderClosePayload = {
29531
29689
  exchangeName: ExchangeName;
29532
29690
  frameName?: FrameName;
29533
29691
  };
29692
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
29693
+ when: Date;
29534
29694
  /** true when called during a backtest run — adapter should skip exchange calls */
29535
29695
  backtest: boolean;
29536
29696
  };
@@ -29606,6 +29766,8 @@ type BrokerOrderCheckPayload = {
29606
29766
  exchangeName: ExchangeName;
29607
29767
  frameName?: FrameName;
29608
29768
  };
29769
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
29770
+ when: Date;
29609
29771
  /** true when called during a backtest run — adapter should skip exchange calls */
29610
29772
  backtest: boolean;
29611
29773
  };
@@ -29653,6 +29815,8 @@ type BrokerActivePingPayload = {
29653
29815
  exchangeName: ExchangeName;
29654
29816
  frameName?: FrameName;
29655
29817
  };
29818
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
29819
+ when: Date;
29656
29820
  /** true when called during a backtest run — adapter should skip exchange calls */
29657
29821
  backtest: boolean;
29658
29822
  };
@@ -29698,6 +29862,8 @@ type BrokerSchedulePingPayload = {
29698
29862
  exchangeName: ExchangeName;
29699
29863
  frameName?: FrameName;
29700
29864
  };
29865
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
29866
+ when: Date;
29701
29867
  /** true when called during a backtest run — adapter should skip exchange calls */
29702
29868
  backtest: boolean;
29703
29869
  };
@@ -29729,6 +29895,8 @@ type BrokerIdlePingPayload = {
29729
29895
  exchangeName: ExchangeName;
29730
29896
  frameName?: FrameName;
29731
29897
  };
29898
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
29899
+ when: Date;
29732
29900
  /** true when called during a backtest run — adapter should skip exchange calls */
29733
29901
  backtest: boolean;
29734
29902
  };
@@ -29775,6 +29943,8 @@ type BrokerScheduleOpenPayload = {
29775
29943
  exchangeName: ExchangeName;
29776
29944
  frameName?: FrameName;
29777
29945
  };
29946
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
29947
+ when: Date;
29778
29948
  /** true when called during a backtest run — adapter should skip exchange calls */
29779
29949
  backtest: boolean;
29780
29950
  };
@@ -29823,6 +29993,8 @@ type BrokerScheduleCancelledPayload = {
29823
29993
  exchangeName: ExchangeName;
29824
29994
  frameName?: FrameName;
29825
29995
  };
29996
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
29997
+ when: Date;
29826
29998
  /** true when called during a backtest run — adapter should skip exchange calls */
29827
29999
  backtest: boolean;
29828
30000
  };
@@ -29868,6 +30040,8 @@ type BrokerPendingOpenPayload = {
29868
30040
  exchangeName: ExchangeName;
29869
30041
  frameName?: FrameName;
29870
30042
  };
30043
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
30044
+ when: Date;
29871
30045
  /** true when called during a backtest run — adapter should skip exchange calls */
29872
30046
  backtest: boolean;
29873
30047
  };
@@ -29916,6 +30090,8 @@ type BrokerPendingClosePayload = {
29916
30090
  exchangeName: ExchangeName;
29917
30091
  frameName?: FrameName;
29918
30092
  };
30093
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
30094
+ when: Date;
29919
30095
  /** true when called during a backtest run — adapter should skip exchange calls */
29920
30096
  backtest: boolean;
29921
30097
  };
@@ -29960,6 +30136,8 @@ type BrokerPartialProfitPayload = {
29960
30136
  exchangeName: ExchangeName;
29961
30137
  frameName?: FrameName;
29962
30138
  };
30139
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
30140
+ when: Date;
29963
30141
  /** true when called during a backtest run — adapter should skip exchange calls */
29964
30142
  backtest: boolean;
29965
30143
  };
@@ -30004,6 +30182,8 @@ type BrokerPartialLossPayload = {
30004
30182
  exchangeName: ExchangeName;
30005
30183
  frameName?: FrameName;
30006
30184
  };
30185
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
30186
+ when: Date;
30007
30187
  /** true when called during a backtest run — adapter should skip exchange calls */
30008
30188
  backtest: boolean;
30009
30189
  };
@@ -30048,6 +30228,8 @@ type BrokerTrailingStopPayload = {
30048
30228
  exchangeName: ExchangeName;
30049
30229
  frameName?: FrameName;
30050
30230
  };
30231
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
30232
+ when: Date;
30051
30233
  /** true when called during a backtest run — adapter should skip exchange calls */
30052
30234
  backtest: boolean;
30053
30235
  };
@@ -30092,6 +30274,8 @@ type BrokerTrailingTakePayload = {
30092
30274
  exchangeName: ExchangeName;
30093
30275
  frameName?: FrameName;
30094
30276
  };
30277
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
30278
+ when: Date;
30095
30279
  /** true when called during a backtest run — adapter should skip exchange calls */
30096
30280
  backtest: boolean;
30097
30281
  };
@@ -30135,6 +30319,8 @@ type BrokerBreakevenPayload = {
30135
30319
  exchangeName: ExchangeName;
30136
30320
  frameName?: FrameName;
30137
30321
  };
30322
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
30323
+ when: Date;
30138
30324
  /** true when called during a backtest run — adapter should skip exchange calls */
30139
30325
  backtest: boolean;
30140
30326
  };
@@ -30177,6 +30363,8 @@ type BrokerAverageBuyPayload = {
30177
30363
  exchangeName: ExchangeName;
30178
30364
  frameName?: FrameName;
30179
30365
  };
30366
+ /** Virtual time of the event: candle timestamp in backtest, wall-clock tick time in live */
30367
+ when: Date;
30180
30368
  /** true when called during a backtest run — adapter should skip exchange calls */
30181
30369
  backtest: boolean;
30182
30370
  };
@@ -39857,4 +40045,4 @@ declare const getTotalClosed: (signal: Signal) => {
39857
40045
  */
39858
40046
  declare const getPriceScale: (value: number) => number;
39859
40047
 
39860
- export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, type AfterEndContract, type AverageBuyCommit, type AverageBuyCommitNotification, Backtest, type BacktestStatisticsModel, type BeforeStartContract, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, type BreakevenEvent, type BreakevenStatisticsModel, Broker, type BrokerActivePingPayload, type BrokerAverageBuyPayload, BrokerBase, type BrokerBreakevenPayload, type BrokerIdlePingPayload, type BrokerOrderCheckPayload, type BrokerOrderClosePayload, type BrokerOrderOpenPayload, type BrokerPartialLossPayload, type BrokerPartialProfitPayload, type BrokerPendingClosePayload, type BrokerPendingOpenPayload, type BrokerScheduleCancelledPayload, type BrokerScheduleOpenPayload, type BrokerSchedulePingPayload, type BrokerTrailingStopPayload, type BrokerTrailingTakePayload, Cache, type CancelScheduledCommit, type CancelScheduledCommitNotification, type CandleData, type CandleInterval, type ClosePendingCommit, type ClosePendingCommitNotification, type ColumnConfig, type ColumnModel, type CommitPayload, Constant, type CriticalErrorNotification, Cron, type CronCallback, type CronEntry, type CronHandle, type DoneContract, Dump, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, HighestProfit, type HighestProfitContract, type HighestProfitEvent, type HighestProfitStatisticsModel, type IActionSchema, type IActivateScheduledCommitRow, type IAggregatedTradeData, type IBidData, type IBreakevenCommitRow, type IBroker, type ICandleData, type ICommitRow, type IDumpContext, type IDumpInstance, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type ILog, type ILogEntry, type ILogger, type IMarkdownDumpOptions, type IMemoryInstance, type INotificationUtils, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPersistBreakevenInstance, type IPersistCandleInstance, type IPersistIntervalInstance, type IPersistLogInstance, type IPersistMeasureInstance, type IPersistMemoryInstance, type IPersistNotificationInstance, type IPersistPartialInstance, type IPersistRecentInstance, type IPersistRiskInstance, type IPersistScheduleInstance, type IPersistSessionInstance, type IPersistSignalInstance, type IPersistStateInstance, type IPersistStorageInstance, type IPersistStrategyInstance, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicAction, type IPublicCandleData, type IPublicSignalRow, type IRecentUtils, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IRuntimeInfo, type IRuntimeRange, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISessionInstance, type ISignalDto, type ISignalIntervalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingParams, type ISizingParamsATR, type ISizingParamsFixedPercentage, type ISizingParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStateInstance, type IStorageSignalRow, type IStorageUtils, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IStrategyTickResultWaiting, type ITrailingStopCommitRow, type ITrailingTakeCommitRow, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type IdlePingContract, type InfoErrorNotification, Interval, type IntervalData, Live, type LiveStatisticsModel, Log, type LogData, Lookup, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MarkdownWriter, MaxDrawdown, type MaxDrawdownContract, type MaxDrawdownEvent, type MaxDrawdownStatisticsModel, type MeasureData, Memory, MemoryBacktest, MemoryBacktestAdapter, type MemoryData, MemoryLive, MemoryLiveAdapter, type MessageModel, type MessageRole, type MessageToolCall, MethodContextService, type MetricStats, Notification, NotificationBacktest, type NotificationData, NotificationLive, type NotificationModel, type OrderCheckContract, type OrderCloseContract, type OrderOpenContract, type OrderSyncCloseNotification, type OrderSyncContract, type OrderSyncOpenNotification, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossAvailableNotification, type PartialLossCommit, type PartialLossCommitNotification, type PartialLossContract, type PartialProfitAvailableNotification, type PartialProfitCommit, type PartialProfitCommitNotification, type PartialProfitContract, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistBreakevenInstance, PersistCandleAdapter, PersistCandleInstance, PersistIntervalAdapter, PersistIntervalInstance, PersistLogAdapter, PersistLogInstance, PersistMeasureAdapter, PersistMeasureInstance, PersistMemoryAdapter, PersistMemoryInstance, PersistNotificationAdapter, PersistNotificationInstance, PersistPartialAdapter, PersistPartialInstance, PersistRecentAdapter, PersistRecentInstance, PersistRiskAdapter, PersistRiskInstance, PersistScheduleAdapter, PersistScheduleInstance, PersistSessionAdapter, PersistSessionInstance, PersistSignalAdapter, PersistSignalInstance, PersistStateAdapter, PersistStateInstance, PersistStorageAdapter, PersistStorageInstance, PersistStrategyAdapter, PersistStrategyInstance, Position, PositionSize, type ProgressBacktestContract, type ProgressWalkerContract, Recent, RecentBacktest, type RecentData, RecentLive, Reflect, Report, ReportBase, type ReportName, ReportWriter, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, type RuntimeData, Schedule, type ScheduleData, type ScheduleEventContract, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, Session, SessionBacktest, type SessionData, SessionLive, type SignalCancelledNotification, type SignalClosedNotification, type SignalData, type SignalEventContract, type SignalInfoContract, type SignalInfoNotification, type SignalInterval, type SignalOpenedNotification, type SignalScheduledNotification, State, StateBacktest, StateBacktestAdapter, type StateData, StateLive, StateLiveAdapter, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyData, type StrategyEvent, type StrategyStatisticsModel, type StrategyStatus, Sync, type SyncEvent, type SyncStatisticsModel, System, type TBrokerCtor, type TDumpInstanceCtor, type TLogCtor, type TMarkdownBase, type TMemoryInstanceCtor, type TNotificationUtilsCtor, type TPersistBase, type TPersistBaseCtor, type TPersistBreakevenInstanceCtor, type TPersistCandleInstanceCtor, type TPersistIntervalInstanceCtor, type TPersistLogInstanceCtor, type TPersistMeasureInstanceCtor, type TPersistMemoryInstanceCtor, type TPersistNotificationInstanceCtor, type TPersistPartialInstanceCtor, type TPersistRecentInstanceCtor, type TPersistRiskInstanceCtor, type TPersistScheduleInstanceCtor, type TPersistSessionInstanceCtor, type TPersistSignalInstanceCtor, type TPersistStateInstanceCtor, type TPersistStorageInstanceCtor, type TPersistStrategyInstanceCtor, type TRecentUtilsCtor, type TReportBase, type TSessionInstanceCtor, type TStateInstanceCtor, type TStorageUtilsCtor, type TickEvent, type TrailingStopCommit, type TrailingStopCommitNotification, type TrailingTakeCommit, type TrailingTakeCommitNotification, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, alignToInterval, beginContext, beginTime, cacheCandles, checkCandles, commitActivateScheduled, commitAverageBuy, commitBreakeven, commitCancelScheduled, commitClosePending, commitCreateSignal, commitCreateStopLoss, commitCreateTakeProfit, commitPartialLoss, commitPartialLossCost, commitPartialProfit, commitPartialProfitCost, commitSignalNotify, commitTrailingStop, commitTrailingStopCost, commitTrailingTake, commitTrailingTakeCost, createSignalState, dumpAgentAnswer, dumpError, dumpJson, dumpRecord, dumpTable, dumpText, emitters, formatPrice, formatQuantity, get, getActionSchema, getAggregatedTrades, getAveragePrice, getBacktestTimeframe, getBreakeven, getCandles, getClosePrice, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getEffectivePriceOpen, getExchangeSchema, getFrameSchema, getLatestSignal, getMaxDrawdownDistancePnlCost, getMaxDrawdownDistancePnlPercentage, getMinutesSinceLatestSignalCreated, getMode, getNextCandles, getOrderBook, getPendingSignal, getPositionActiveMinutes, getPositionCountdownMinutes, getPositionDrawdownMinutes, getPositionEffectivePrice, getPositionEntries, getPositionEntryOverlap, getPositionEstimateMinutes, getPositionHighestMaxDrawdownPnlCost, getPositionHighestMaxDrawdownPnlPercentage, getPositionHighestPnlCost, getPositionHighestPnlPercentage, getPositionHighestProfitBreakeven, getPositionHighestProfitDistancePnlCost, getPositionHighestProfitDistancePnlPercentage, getPositionHighestProfitMinutes, getPositionHighestProfitPrice, getPositionHighestProfitTimestamp, getPositionInvestedCost, getPositionInvestedCount, getPositionLevels, getPositionMaxDrawdownMinutes, getPositionMaxDrawdownPnlCost, getPositionMaxDrawdownPnlPercentage, getPositionMaxDrawdownPrice, getPositionMaxDrawdownTimestamp, getPositionPartialOverlap, getPositionPartials, getPositionPnlCost, getPositionPnlPercent, getPositionWaitingMinutes, getPriceScale, getRawCandles, getRemainingCostBasis, getRiskSchema, getRuntimeInfo, getScheduledSignal, getSessionData, getSignalState, getSizingSchema, getStrategySchema, getStrategyStatus, getSymbol, getTimestamp, getTotalClosed, getTotalCostClosed, getTotalPercentClosed, getTotalPercentHeld, getWalkerSchema, hasNoPendingSignal, hasNoScheduledSignal, hasTradeContext, intervalStepMs, investedCostToPercent, backtest as lib, listExchangeSchema, listFrameSchema, listMemory, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenAfterEnd, listenAfterEndOnce, listenBacktestProgress, listenBeforeStart, listenBeforeStartOnce, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenCheck, listenCheckOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenHighestProfit, listenHighestProfitOnce, listenIdlePing, listenIdlePingOnce, listenMaxDrawdown, listenMaxDrawdownOnce, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenScheduleEvent, listenScheduleEventOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalEvent, listenSignalEventOnce, listenSignalLive, listenSignalLiveOnce, listenSignalNotify, listenSignalNotifyOnce, listenSignalOnce, listenStrategyCommit, listenStrategyCommitOnce, listenSync, listenSyncOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, percentDiff, percentToCloseCost, percentValue, readMemory, removeMemory, roundTicks, runInMockContext, searchMemory, set, setColumns, setConfig, setLogger, setSessionData, setSignalState, shutdown, slPercentShiftToPrice, slPriceToPercentShift, stopStrategy, toPlainString, toProfitLossDto, tpPercentShiftToPrice, tpPriceToPercentShift, validate, validateCandles, validateCommonSignal, validatePendingSignal, validateScheduledSignal, validateSignal, waitForCandle, waitForReady, warmCandles, writeMemory };
40048
+ export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, type AfterEndContract, type AverageBuyCommit, type AverageBuyCommitNotification, Backtest, type BacktestStatisticsModel, type BeforeStartContract, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, type BreakevenEvent, type BreakevenStatisticsModel, Broker, type BrokerActivePingPayload, type BrokerAverageBuyPayload, BrokerBase, type BrokerBreakevenPayload, type BrokerIdlePingPayload, type BrokerOrderCheckPayload, type BrokerOrderClosePayload, type BrokerOrderOpenPayload, type BrokerPartialLossPayload, type BrokerPartialProfitPayload, type BrokerPendingClosePayload, type BrokerPendingOpenPayload, type BrokerScheduleCancelledPayload, type BrokerScheduleOpenPayload, type BrokerSchedulePingPayload, type BrokerTrailingStopPayload, type BrokerTrailingTakePayload, Cache, type CancelScheduledCommit, type CancelScheduledCommitNotification, type CandleData, type CandleInterval, type ClosePendingCommit, type ClosePendingCommitNotification, type ColumnConfig, type ColumnModel, type CommitPayload, Constant, type CriticalErrorNotification, Cron, type CronCallback, type CronEntry, type CronHandle, type DoneContract, Dump, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, HighestProfit, type HighestProfitContract, type HighestProfitEvent, type HighestProfitStatisticsModel, type IActionSchema, type IActivateScheduledCommitRow, type IAggregatedTradeData, type IBidData, type IBreakevenCommitRow, type IBroker, type ICandleData, type ICommitRow, type IDumpContext, type IDumpInstance, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type ILog, type ILogEntry, type ILogger, type IMarkdownDumpOptions, type IMemoryInstance, type INotificationUtils, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPersistBreakevenInstance, type IPersistCandleInstance, type IPersistIntervalInstance, type IPersistLogInstance, type IPersistMeasureInstance, type IPersistMemoryInstance, type IPersistNotificationInstance, type IPersistPartialInstance, type IPersistRecentInstance, type IPersistRiskInstance, type IPersistScheduleInstance, type IPersistSessionInstance, type IPersistSignalInstance, type IPersistStateInstance, type IPersistStorageInstance, type IPersistStrategyInstance, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicAction, type IPublicCandleData, type IPublicSignalRow, type IRecentUtils, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IRuntimeInfo, type IRuntimeRange, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISessionInstance, type ISignalDto, type ISignalIntervalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingParams, type ISizingParamsATR, type ISizingParamsFixedPercentage, type ISizingParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStateInstance, type IStorageSignalRow, type IStorageUtils, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IStrategyTickResultWaiting, type ITrailingStopCommitRow, type ITrailingTakeCommitRow, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type IdlePingContract, type InfoErrorNotification, Interval, type IntervalData, Live, type LiveStatisticsModel, Log, type LogData, Lookup, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MarkdownWriter, MaxDrawdown, type MaxDrawdownContract, type MaxDrawdownEvent, type MaxDrawdownStatisticsModel, type MeasureData, Memory, MemoryBacktest, MemoryBacktestAdapter, type MemoryData, MemoryLive, MemoryLiveAdapter, type MessageModel, type MessageRole, type MessageToolCall, MethodContextService, type MetricStats, Notification, NotificationBacktest, type NotificationData, NotificationLive, type NotificationModel, type OrderCheckContract, type OrderCloseContract, type OrderOpenContract, type OrderSyncCheckNotification, type OrderSyncCloseNotification, type OrderSyncContract, type OrderSyncOpenNotification, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossAvailableNotification, type PartialLossCommit, type PartialLossCommitNotification, type PartialLossContract, type PartialProfitAvailableNotification, type PartialProfitCommit, type PartialProfitCommitNotification, type PartialProfitContract, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistBreakevenInstance, PersistCandleAdapter, PersistCandleInstance, PersistIntervalAdapter, PersistIntervalInstance, PersistLogAdapter, PersistLogInstance, PersistMeasureAdapter, PersistMeasureInstance, PersistMemoryAdapter, PersistMemoryInstance, PersistNotificationAdapter, PersistNotificationInstance, PersistPartialAdapter, PersistPartialInstance, PersistRecentAdapter, PersistRecentInstance, PersistRiskAdapter, PersistRiskInstance, PersistScheduleAdapter, PersistScheduleInstance, PersistSessionAdapter, PersistSessionInstance, PersistSignalAdapter, PersistSignalInstance, PersistStateAdapter, PersistStateInstance, PersistStorageAdapter, PersistStorageInstance, PersistStrategyAdapter, PersistStrategyInstance, Position, PositionSize, type ProgressBacktestContract, type ProgressWalkerContract, Recent, RecentBacktest, type RecentData, RecentLive, Reflect, Report, ReportBase, type ReportName, ReportWriter, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, type RuntimeData, Schedule, type ScheduleData, type ScheduleEventContract, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, Session, SessionBacktest, type SessionData, SessionLive, type SignalCancelledNotification, type SignalClosedNotification, type SignalData, type SignalEventContract, type SignalInfoContract, type SignalInfoNotification, type SignalInterval, type SignalOpenedNotification, type SignalScheduledNotification, State, StateBacktest, StateBacktestAdapter, type StateData, StateLive, StateLiveAdapter, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyData, type StrategyEvent, type StrategyStatisticsModel, type StrategyStatus, Sync, type SyncEvent, type SyncStatisticsModel, System, type TBrokerCtor, type TDumpInstanceCtor, type TLogCtor, type TMarkdownBase, type TMemoryInstanceCtor, type TNotificationUtilsCtor, type TPersistBase, type TPersistBaseCtor, type TPersistBreakevenInstanceCtor, type TPersistCandleInstanceCtor, type TPersistIntervalInstanceCtor, type TPersistLogInstanceCtor, type TPersistMeasureInstanceCtor, type TPersistMemoryInstanceCtor, type TPersistNotificationInstanceCtor, type TPersistPartialInstanceCtor, type TPersistRecentInstanceCtor, type TPersistRiskInstanceCtor, type TPersistScheduleInstanceCtor, type TPersistSessionInstanceCtor, type TPersistSignalInstanceCtor, type TPersistStateInstanceCtor, type TPersistStorageInstanceCtor, type TPersistStrategyInstanceCtor, type TRecentUtilsCtor, type TReportBase, type TSessionInstanceCtor, type TStateInstanceCtor, type TStorageUtilsCtor, type TickEvent, type TrailingStopCommit, type TrailingStopCommitNotification, type TrailingTakeCommit, type TrailingTakeCommitNotification, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, alignToInterval, beginContext, beginTime, cacheCandles, checkCandles, commitActivateScheduled, commitAverageBuy, commitBreakeven, commitCancelScheduled, commitClosePending, commitCreateSignal, commitCreateStopLoss, commitCreateTakeProfit, commitPartialLoss, commitPartialLossCost, commitPartialProfit, commitPartialProfitCost, commitSignalNotify, commitTrailingStop, commitTrailingStopCost, commitTrailingTake, commitTrailingTakeCost, createSignalState, dumpAgentAnswer, dumpError, dumpJson, dumpRecord, dumpTable, dumpText, emitters, formatPrice, formatQuantity, get, getActionSchema, getAggregatedTrades, getAveragePrice, getBacktestTimeframe, getBreakeven, getCandles, getClosePrice, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getEffectivePriceOpen, getExchangeSchema, getFrameSchema, getLatestSignal, getMaxDrawdownDistancePnlCost, getMaxDrawdownDistancePnlPercentage, getMinutesSinceLatestSignalCreated, getMode, getNextCandles, getOrderBook, getPendingSignal, getPositionActiveMinutes, getPositionCountdownMinutes, getPositionDrawdownMinutes, getPositionEffectivePrice, getPositionEntries, getPositionEntryOverlap, getPositionEstimateMinutes, getPositionHighestMaxDrawdownPnlCost, getPositionHighestMaxDrawdownPnlPercentage, getPositionHighestPnlCost, getPositionHighestPnlPercentage, getPositionHighestProfitBreakeven, getPositionHighestProfitDistancePnlCost, getPositionHighestProfitDistancePnlPercentage, getPositionHighestProfitMinutes, getPositionHighestProfitPrice, getPositionHighestProfitTimestamp, getPositionInvestedCost, getPositionInvestedCount, getPositionLevels, getPositionMaxDrawdownMinutes, getPositionMaxDrawdownPnlCost, getPositionMaxDrawdownPnlPercentage, getPositionMaxDrawdownPrice, getPositionMaxDrawdownTimestamp, getPositionPartialOverlap, getPositionPartials, getPositionPnlCost, getPositionPnlPercent, getPositionWaitingMinutes, getPriceScale, getRawCandles, getRemainingCostBasis, getRiskSchema, getRuntimeInfo, getScheduledSignal, getSessionData, getSignalState, getSizingSchema, getStrategySchema, getStrategyStatus, getSymbol, getTimestamp, getTotalClosed, getTotalCostClosed, getTotalPercentClosed, getTotalPercentHeld, getWalkerSchema, hasNoPendingSignal, hasNoScheduledSignal, hasTradeContext, intervalStepMs, investedCostToPercent, backtest as lib, listExchangeSchema, listFrameSchema, listMemory, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenAfterEnd, listenAfterEndOnce, listenBacktestProgress, listenBeforeStart, listenBeforeStartOnce, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenCheck, listenCheckOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenHighestProfit, listenHighestProfitOnce, listenIdlePing, listenIdlePingOnce, listenMaxDrawdown, listenMaxDrawdownOnce, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenScheduleEvent, listenScheduleEventOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalEvent, listenSignalEventOnce, listenSignalLive, listenSignalLiveOnce, listenSignalNotify, listenSignalNotifyOnce, listenSignalOnce, listenStrategyCommit, listenStrategyCommitOnce, listenSync, listenSyncOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, percentDiff, percentToCloseCost, percentValue, readMemory, removeMemory, roundTicks, runInMockContext, searchMemory, set, setColumns, setConfig, setLogger, setSessionData, setSignalState, shutdown, slPercentShiftToPrice, slPriceToPercentShift, stopStrategy, toPlainString, toProfitLossDto, tpPercentShiftToPrice, tpPriceToPercentShift, validate, validateCandles, validateCommonSignal, validatePendingSignal, validateScheduledSignal, validateSignal, waitForCandle, waitForReady, warmCandles, writeMemory };