backtest-kit 2.0.11 → 2.1.1

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": "2.0.11",
3
+ "version": "2.1.1",
4
4
  "description": "A TypeScript library for trading system backtest",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
package/types.d.ts CHANGED
@@ -1204,7 +1204,7 @@ interface IStrategySchema {
1204
1204
  * Reason why signal was closed.
1205
1205
  * Used in discriminated union for type-safe handling.
1206
1206
  */
1207
- type StrategyCloseReason = "time_expired" | "take_profit" | "stop_loss";
1207
+ type StrategyCloseReason = "time_expired" | "take_profit" | "stop_loss" | "closed";
1208
1208
  /**
1209
1209
  * Reason why scheduled signal was cancelled.
1210
1210
  * Used in discriminated union for type-safe handling.
@@ -1355,7 +1355,7 @@ interface IStrategyTickResultClosed {
1355
1355
  signal: IPublicSignalRow;
1356
1356
  /** Final VWAP price at close */
1357
1357
  currentPrice: number;
1358
- /** Why signal closed (time_expired | take_profit | stop_loss) */
1358
+ /** Why signal closed (time_expired | take_profit | stop_loss | closed) */
1359
1359
  closeReason: StrategyCloseReason;
1360
1360
  /** Unix timestamp in milliseconds when signal closed */
1361
1361
  closeTimestamp: number;
@@ -1371,6 +1371,8 @@ interface IStrategyTickResultClosed {
1371
1371
  symbol: string;
1372
1372
  /** Whether this event is from backtest mode (true) or live mode (false) */
1373
1373
  backtest: boolean;
1374
+ /** Close ID (only for user-initiated closes with reason "closed") */
1375
+ closeId?: string;
1374
1376
  }
1375
1377
  /**
1376
1378
  * Tick result: scheduled signal cancelled without opening position.
@@ -1520,7 +1522,7 @@ interface IStrategy {
1520
1522
  * await cancel();
1521
1523
  * ```
1522
1524
  */
1523
- stop: (symbol: string, backtest: boolean) => Promise<void>;
1525
+ stopStrategy: (symbol: string, backtest: boolean) => Promise<void>;
1524
1526
  /**
1525
1527
  * Cancels the scheduled signal without stopping the strategy.
1526
1528
  *
@@ -1537,11 +1539,33 @@ interface IStrategy {
1537
1539
  * @example
1538
1540
  * ```typescript
1539
1541
  * // Cancel scheduled signal without stopping strategy
1540
- * await strategy.cancel("BTCUSDT");
1542
+ * await strategy.cancelScheduled("BTCUSDT");
1541
1543
  * // Strategy continues, can generate new signals
1542
1544
  * ```
1543
1545
  */
1544
- cancel: (symbol: string, backtest: boolean, cancelId?: string) => Promise<void>;
1546
+ cancelScheduled: (symbol: string, backtest: boolean, cancelId?: string) => Promise<void>;
1547
+ /**
1548
+ * Closes the pending signal without stopping the strategy.
1549
+ *
1550
+ * Clears the pending signal (active position).
1551
+ * Does NOT affect scheduled signals or strategy operation.
1552
+ * Does NOT set stop flag - strategy can continue generating new signals.
1553
+ *
1554
+ * Use case: Close an active position that is no longer desired without stopping the entire strategy.
1555
+ *
1556
+ * @param symbol - Trading pair symbol (e.g., "BTCUSDT")
1557
+ * @param backtest - Whether running in backtest mode
1558
+ * @param closeId - Optional identifier for this close operation
1559
+ * @returns Promise that resolves when pending signal is cleared
1560
+ *
1561
+ * @example
1562
+ * ```typescript
1563
+ * // Close pending signal without stopping strategy
1564
+ * await strategy.closePending("BTCUSDT", false, "user-close-123");
1565
+ * // Strategy continues, can generate new signals
1566
+ * ```
1567
+ */
1568
+ closePending: (symbol: string, backtest: boolean, closeId?: string) => Promise<void>;
1545
1569
  /**
1546
1570
  * Executes partial close at profit level (moving toward TP).
1547
1571
  *
@@ -3777,13 +3801,35 @@ declare function getActionSchema(actionName: ActionName): IActionSchema;
3777
3801
  *
3778
3802
  * @example
3779
3803
  * ```typescript
3780
- * import { cancel } from "backtest-kit";
3804
+ * import { commitCancelScheduled } from "backtest-kit";
3781
3805
  *
3782
3806
  * // Cancel scheduled signal with custom ID
3783
- * await cancel("BTCUSDT", "my-strategy", "manual-cancel-001");
3807
+ * await commitCancelScheduled("BTCUSDT", "manual-cancel-001");
3784
3808
  * ```
3785
3809
  */
3786
- declare function commitCancel(symbol: string, cancelId?: string): Promise<void>;
3810
+ declare function commitCancelScheduled(symbol: string, cancelId?: string): Promise<void>;
3811
+ /**
3812
+ * Closes the pending signal without stopping the strategy.
3813
+ *
3814
+ * Clears the pending signal (active position).
3815
+ * Does NOT affect scheduled signals or strategy operation.
3816
+ * Does NOT set stop flag - strategy can continue generating new signals.
3817
+ *
3818
+ * Automatically detects backtest/live mode from execution context.
3819
+ *
3820
+ * @param symbol - Trading pair symbol
3821
+ * @param closeId - Optional close ID for tracking user-initiated closes
3822
+ * @returns Promise that resolves when pending signal is closed
3823
+ *
3824
+ * @example
3825
+ * ```typescript
3826
+ * import { commitClosePending } from "backtest-kit";
3827
+ *
3828
+ * // Close pending signal with custom ID
3829
+ * await commitClosePending("BTCUSDT", "manual-close-001");
3830
+ * ```
3831
+ */
3832
+ declare function commitClosePending(symbol: string, closeId?: string): Promise<void>;
3787
3833
  /**
3788
3834
  * Executes partial close at profit level (moving toward TP).
3789
3835
  *
@@ -3976,7 +4022,7 @@ declare function commitBreakeven(symbol: string): Promise<boolean>;
3976
4022
  * await stop("BTCUSDT", "my-strategy");
3977
4023
  * ```
3978
4024
  */
3979
- declare function stop(symbol: string): Promise<void>;
4025
+ declare function stopStrategy(symbol: string): Promise<void>;
3980
4026
 
3981
4027
  /**
3982
4028
  * Unified breakeven event data for report generation.
@@ -7157,16 +7203,6 @@ interface ProgressBacktestNotification {
7157
7203
  processedFrames: number;
7158
7204
  progress: number;
7159
7205
  }
7160
- /**
7161
- * Bootstrap notification.
7162
- * Emitted when the notification system is initialized.
7163
- * Marks the beginning of notification tracking session.
7164
- */
7165
- interface BootstrapNotification {
7166
- type: "bootstrap";
7167
- id: string;
7168
- timestamp: number;
7169
- }
7170
7206
  /**
7171
7207
  * Root discriminated union of all notification types.
7172
7208
  * Type discrimination is done via the `type` field.
@@ -7193,7 +7229,7 @@ interface BootstrapNotification {
7193
7229
  * }
7194
7230
  * ```
7195
7231
  */
7196
- type NotificationModel = SignalOpenedNotification | SignalClosedNotification | PartialProfitNotification | PartialLossNotification | RiskRejectionNotification | SignalScheduledNotification | SignalCancelledNotification | BacktestDoneNotification | LiveDoneNotification | InfoErrorNotification | CriticalErrorNotification | ValidationErrorNotification | ProgressBacktestNotification | BootstrapNotification;
7232
+ type NotificationModel = SignalOpenedNotification | SignalClosedNotification | PartialProfitNotification | PartialLossNotification | RiskRejectionNotification | SignalScheduledNotification | SignalCancelledNotification | BacktestDoneNotification | LiveDoneNotification | InfoErrorNotification | CriticalErrorNotification | ValidationErrorNotification | ProgressBacktestNotification;
7197
7233
 
7198
7234
  /**
7199
7235
  * Unified tick event data for report generation.
@@ -9181,11 +9217,38 @@ declare class BacktestUtils {
9181
9217
  * }, "manual-cancel-001");
9182
9218
  * ```
9183
9219
  */
9184
- commitCancel: (symbol: string, context: {
9220
+ commitCancelScheduled: (symbol: string, context: {
9185
9221
  strategyName: StrategyName;
9186
9222
  exchangeName: ExchangeName;
9187
9223
  frameName: FrameName;
9188
9224
  }, cancelId?: string) => Promise<void>;
9225
+ /**
9226
+ * Closes the pending signal without stopping the strategy.
9227
+ *
9228
+ * Clears the pending signal (active position).
9229
+ * Does NOT affect scheduled signals or strategy operation.
9230
+ * Does NOT set stop flag - strategy can continue generating new signals.
9231
+ *
9232
+ * @param symbol - Trading pair symbol
9233
+ * @param context - Execution context with strategyName, exchangeName, and frameName
9234
+ * @param closeId - Optional close ID for user-initiated closes
9235
+ * @returns Promise that resolves when pending signal is closed
9236
+ *
9237
+ * @example
9238
+ * ```typescript
9239
+ * // Close pending signal with custom ID
9240
+ * await Backtest.commitClose("BTCUSDT", {
9241
+ * exchangeName: "binance",
9242
+ * strategyName: "my-strategy",
9243
+ * frameName: "1m"
9244
+ * }, "manual-close-001");
9245
+ * ```
9246
+ */
9247
+ commitClosePending: (symbol: string, context: {
9248
+ strategyName: StrategyName;
9249
+ exchangeName: ExchangeName;
9250
+ frameName: FrameName;
9251
+ }, closeId?: string) => Promise<void>;
9189
9252
  /**
9190
9253
  * Executes partial close at profit level (moving toward TP).
9191
9254
  *
@@ -9894,10 +9957,35 @@ declare class LiveUtils {
9894
9957
  * }, "manual-cancel-001");
9895
9958
  * ```
9896
9959
  */
9897
- commitCancel: (symbol: string, context: {
9960
+ commitCancelScheduled: (symbol: string, context: {
9898
9961
  strategyName: StrategyName;
9899
9962
  exchangeName: ExchangeName;
9900
9963
  }, cancelId?: string) => Promise<void>;
9964
+ /**
9965
+ * Closes the pending signal without stopping the strategy.
9966
+ *
9967
+ * Clears the pending signal (active position).
9968
+ * Does NOT affect scheduled signals or strategy operation.
9969
+ * Does NOT set stop flag - strategy can continue generating new signals.
9970
+ *
9971
+ * @param symbol - Trading pair symbol
9972
+ * @param context - Execution context with strategyName and exchangeName
9973
+ * @param closeId - Optional close ID for user-initiated closes
9974
+ * @returns Promise that resolves when pending signal is closed
9975
+ *
9976
+ * @example
9977
+ * ```typescript
9978
+ * // Close pending signal with custom ID
9979
+ * await Live.commitClose("BTCUSDT", {
9980
+ * exchangeName: "binance",
9981
+ * strategyName: "my-strategy"
9982
+ * }, "manual-close-001");
9983
+ * ```
9984
+ */
9985
+ commitClosePending: (symbol: string, context: {
9986
+ strategyName: StrategyName;
9987
+ exchangeName: ExchangeName;
9988
+ }, closeId?: string) => Promise<void>;
9901
9989
  /**
9902
9990
  * Executes partial close at profit level (moving toward TP).
9903
9991
  *
@@ -12777,14 +12865,13 @@ declare const Cache: CacheUtils;
12777
12865
  /**
12778
12866
  * Public facade for notification operations.
12779
12867
  *
12780
- * Automatically calls waitForInit on each userspace method call.
12781
- * Provides simplified access to notification instance methods.
12868
+ * Automatically subscribes on first use and provides simplified access to notification instance methods.
12782
12869
  *
12783
12870
  * @example
12784
12871
  * ```typescript
12785
12872
  * import { Notification } from "./classes/Notification";
12786
12873
  *
12787
- * // Get all notifications
12874
+ * // Get all notifications (auto-subscribes if not subscribed)
12788
12875
  * const all = await Notification.getData();
12789
12876
  *
12790
12877
  * // Process notifications with type discrimination
@@ -12806,6 +12893,9 @@ declare const Cache: CacheUtils;
12806
12893
  *
12807
12894
  * // Clear history
12808
12895
  * await Notification.clear();
12896
+ *
12897
+ * // Unsubscribe when done
12898
+ * await Notification.unsubscribe();
12809
12899
  * ```
12810
12900
  */
12811
12901
  declare class NotificationUtils {
@@ -12813,6 +12903,7 @@ declare class NotificationUtils {
12813
12903
  private _instance;
12814
12904
  /**
12815
12905
  * Returns all notifications in chronological order (newest first).
12906
+ * Automatically subscribes to emitters if not already subscribed.
12816
12907
  *
12817
12908
  * @returns Array of strongly-typed notification objects
12818
12909
  *
@@ -12837,6 +12928,7 @@ declare class NotificationUtils {
12837
12928
  getData(): Promise<NotificationModel[]>;
12838
12929
  /**
12839
12930
  * Clears all notification history.
12931
+ * Automatically subscribes to emitters if not already subscribed.
12840
12932
  *
12841
12933
  * @example
12842
12934
  * ```typescript
@@ -12844,6 +12936,25 @@ declare class NotificationUtils {
12844
12936
  * ```
12845
12937
  */
12846
12938
  clear(): Promise<void>;
12939
+ /**
12940
+ * Unsubscribes from all notification emitters.
12941
+ * Call this when you no longer need to collect notifications.
12942
+ *
12943
+ * @example
12944
+ * ```typescript
12945
+ * await Notification.unsubscribe();
12946
+ * ```
12947
+ */
12948
+ enable(): Promise<void>;
12949
+ /**
12950
+ * Unsubscribes from all notification emitters.
12951
+ * Call this when you no longer need to collect notifications.
12952
+ * @example
12953
+ * ```typescript
12954
+ * await Notification.unsubscribe();
12955
+ * ```
12956
+ */
12957
+ disable(): Promise<void>;
12847
12958
  }
12848
12959
  /**
12849
12960
  * Singleton instance of NotificationUtils for convenient notification access.
@@ -15191,7 +15302,7 @@ declare class StrategyConnectionService implements TStrategy$1 {
15191
15302
  /**
15192
15303
  * Stops the specified strategy from generating new signals.
15193
15304
  *
15194
- * Delegates to ClientStrategy.stop() which sets internal flag to prevent
15305
+ * Delegates to ClientStrategy.stopStrategy() which sets internal flag to prevent
15195
15306
  * getSignal from being called on subsequent ticks.
15196
15307
  *
15197
15308
  * @param backtest - Whether running in backtest mode
@@ -15199,7 +15310,7 @@ declare class StrategyConnectionService implements TStrategy$1 {
15199
15310
  * @param ctx - Context with strategyName, exchangeName, frameName
15200
15311
  * @returns Promise that resolves when stop flag is set
15201
15312
  */
15202
- stop: (backtest: boolean, symbol: string, context: {
15313
+ stopStrategy: (backtest: boolean, symbol: string, context: {
15203
15314
  strategyName: StrategyName;
15204
15315
  exchangeName: ExchangeName;
15205
15316
  frameName: FrameName;
@@ -15236,7 +15347,7 @@ declare class StrategyConnectionService implements TStrategy$1 {
15236
15347
  /**
15237
15348
  * Cancels the scheduled signal for the specified strategy.
15238
15349
  *
15239
- * Delegates to ClientStrategy.cancel() which clears the scheduled signal
15350
+ * Delegates to ClientStrategy.cancelScheduled() which clears the scheduled signal
15240
15351
  * without stopping the strategy or affecting pending signals.
15241
15352
  *
15242
15353
  * Note: Cancelled event will be emitted on next tick() call when strategy
@@ -15248,11 +15359,32 @@ declare class StrategyConnectionService implements TStrategy$1 {
15248
15359
  * @param cancelId - Optional cancellation ID for user-initiated cancellations
15249
15360
  * @returns Promise that resolves when scheduled signal is cancelled
15250
15361
  */
15251
- cancel: (backtest: boolean, symbol: string, context: {
15362
+ cancelScheduled: (backtest: boolean, symbol: string, context: {
15252
15363
  strategyName: StrategyName;
15253
15364
  exchangeName: ExchangeName;
15254
15365
  frameName: FrameName;
15255
15366
  }, cancelId?: string) => Promise<void>;
15367
+ /**
15368
+ * Closes the pending signal without stopping the strategy.
15369
+ *
15370
+ * Clears the pending signal (active position).
15371
+ * Does NOT affect scheduled signals or strategy operation.
15372
+ * Does NOT set stop flag - strategy can continue generating new signals.
15373
+ *
15374
+ * Note: Closed event will be emitted on next tick() call when strategy
15375
+ * detects the pending signal was closed.
15376
+ *
15377
+ * @param backtest - Whether running in backtest mode
15378
+ * @param symbol - Trading pair symbol
15379
+ * @param context - Context with strategyName, exchangeName, frameName
15380
+ * @param closeId - Optional close ID for user-initiated closes
15381
+ * @returns Promise that resolves when pending signal is closed
15382
+ */
15383
+ closePending: (backtest: boolean, symbol: string, context: {
15384
+ strategyName: StrategyName;
15385
+ exchangeName: ExchangeName;
15386
+ frameName: FrameName;
15387
+ }, closeId?: string) => Promise<void>;
15256
15388
  /**
15257
15389
  * Executes partial close at profit level (moving toward TP).
15258
15390
  *
@@ -16160,7 +16292,7 @@ declare class StrategyCoreService implements TStrategy {
16160
16292
  * @param ctx - Context with strategyName, exchangeName, frameName
16161
16293
  * @returns Promise that resolves when stop flag is set
16162
16294
  */
16163
- stop: (backtest: boolean, symbol: string, context: {
16295
+ stopStrategy: (backtest: boolean, symbol: string, context: {
16164
16296
  strategyName: StrategyName;
16165
16297
  exchangeName: ExchangeName;
16166
16298
  frameName: FrameName;
@@ -16168,7 +16300,7 @@ declare class StrategyCoreService implements TStrategy {
16168
16300
  /**
16169
16301
  * Cancels the scheduled signal without stopping the strategy.
16170
16302
  *
16171
- * Delegates to StrategyConnectionService.cancel() to clear scheduled signal
16303
+ * Delegates to StrategyConnectionService.cancelScheduled() to clear scheduled signal
16172
16304
  * and emit cancelled event through emitters.
16173
16305
  * Does not require execution context.
16174
16306
  *
@@ -16178,11 +16310,33 @@ declare class StrategyCoreService implements TStrategy {
16178
16310
  * @param cancelId - Optional cancellation ID for user-initiated cancellations
16179
16311
  * @returns Promise that resolves when scheduled signal is cancelled
16180
16312
  */
16181
- cancel: (backtest: boolean, symbol: string, context: {
16313
+ cancelScheduled: (backtest: boolean, symbol: string, context: {
16182
16314
  strategyName: StrategyName;
16183
16315
  exchangeName: ExchangeName;
16184
16316
  frameName: FrameName;
16185
16317
  }, cancelId?: string) => Promise<void>;
16318
+ /**
16319
+ * Closes the pending signal without stopping the strategy.
16320
+ *
16321
+ * Clears the pending signal (active position).
16322
+ * Does NOT affect scheduled signals or strategy operation.
16323
+ * Does NOT set stop flag - strategy can continue generating new signals.
16324
+ *
16325
+ * Delegates to StrategyConnectionService.closePending() to clear pending signal
16326
+ * and emit closed event through emitters.
16327
+ * Does not require execution context.
16328
+ *
16329
+ * @param backtest - Whether running in backtest mode
16330
+ * @param symbol - Trading pair symbol
16331
+ * @param context - Context with strategyName, exchangeName, frameName
16332
+ * @param closeId - Optional close ID for user-initiated closes
16333
+ * @returns Promise that resolves when pending signal is closed
16334
+ */
16335
+ closePending: (backtest: boolean, symbol: string, context: {
16336
+ strategyName: StrategyName;
16337
+ exchangeName: ExchangeName;
16338
+ frameName: FrameName;
16339
+ }, closeId?: string) => Promise<void>;
16186
16340
  /**
16187
16341
  * Disposes the ClientStrategy instance for the given context.
16188
16342
  *
@@ -19187,4 +19341,4 @@ declare const backtest: {
19187
19341
  loggerService: LoggerService;
19188
19342
  };
19189
19343
 
19190
- export { ActionBase, type ActivePingContract, Backtest, type BacktestDoneNotification, type BacktestStatisticsModel, type BootstrapNotification, Breakeven, type BreakevenContract, type BreakevenData, Cache, type CandleInterval, type ColumnConfig, type ColumnModel, Constant, type CriticalErrorNotification, type DoneContract, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, type IBidData, type ICandleData, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type IMarkdownDumpOptions, type IOptimizerCallbacks, type IOptimizerData, type IOptimizerFetchArgs, type IOptimizerFilterArgs, type IOptimizerRange, type IOptimizerSchema, type IOptimizerSource, type IOptimizerStrategy, type IOptimizerTemplate, type IOrderBookData, type IPersistBase, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicSignalRow, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISignalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type InfoErrorNotification, Live, type LiveDoneNotification, type LiveStatisticsModel, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, type MessageModel, type MessageRole, MethodContextService, type MetricStats, Notification, type NotificationModel, Optimizer, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossContract, type PartialLossNotification, type PartialProfitContract, type PartialProfitNotification, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistPartialAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistSignalAdapter, PositionSize, type ProgressBacktestContract, type ProgressBacktestNotification, type ProgressOptimizerContract, type ProgressWalkerContract, Report, ReportBase, type ReportName, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, type SignalCancelledNotification, type SignalClosedNotification, type SignalData, type SignalInterval, type SignalOpenedNotification, type SignalScheduledNotification, type TMarkdownBase, type TPersistBase, type TPersistBaseCtor, type TReportBase, type TickEvent, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addOptimizerSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, commitBreakeven, commitCancel, commitPartialLoss, commitPartialProfit, commitSignalPromptHistory, commitTrailingStop, commitTrailingTake, dumpSignalData, emitters, formatPrice, formatQuantity, get, getActionSchema, getAveragePrice, getBacktestTimeframe, getCandles, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getExchangeSchema, getFrameSchema, getMode, getOptimizerSchema, getOrderBook, getRiskSchema, getSizingSchema, getStrategySchema, getSymbol, getWalkerSchema, hasTradeContext, backtest as lib, listExchangeSchema, listFrameSchema, listOptimizerSchema, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenBacktestProgress, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenOptimizerProgress, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalLive, listenSignalLiveOnce, listenSignalOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideOptimizerSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, roundTicks, set, setColumns, setConfig, setLogger, stop, validate };
19344
+ export { ActionBase, type ActivePingContract, Backtest, type BacktestDoneNotification, type BacktestStatisticsModel, Breakeven, type BreakevenContract, type BreakevenData, Cache, type CandleInterval, type ColumnConfig, type ColumnModel, Constant, type CriticalErrorNotification, type DoneContract, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, type IBidData, type ICandleData, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type IMarkdownDumpOptions, type IOptimizerCallbacks, type IOptimizerData, type IOptimizerFetchArgs, type IOptimizerFilterArgs, type IOptimizerRange, type IOptimizerSchema, type IOptimizerSource, type IOptimizerStrategy, type IOptimizerTemplate, type IOrderBookData, type IPersistBase, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicSignalRow, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISignalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type InfoErrorNotification, Live, type LiveDoneNotification, type LiveStatisticsModel, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, type MessageModel, type MessageRole, MethodContextService, type MetricStats, Notification, type NotificationModel, Optimizer, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossContract, type PartialLossNotification, type PartialProfitContract, type PartialProfitNotification, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistPartialAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistSignalAdapter, PositionSize, type ProgressBacktestContract, type ProgressBacktestNotification, type ProgressOptimizerContract, type ProgressWalkerContract, Report, ReportBase, type ReportName, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, type SignalCancelledNotification, type SignalClosedNotification, type SignalData, type SignalInterval, type SignalOpenedNotification, type SignalScheduledNotification, type TMarkdownBase, type TPersistBase, type TPersistBaseCtor, type TReportBase, type TickEvent, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addOptimizerSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, commitBreakeven, commitCancelScheduled, commitClosePending, commitPartialLoss, commitPartialProfit, commitSignalPromptHistory, commitTrailingStop, commitTrailingTake, dumpSignalData, emitters, formatPrice, formatQuantity, get, getActionSchema, getAveragePrice, getBacktestTimeframe, getCandles, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getExchangeSchema, getFrameSchema, getMode, getOptimizerSchema, getOrderBook, getRiskSchema, getSizingSchema, getStrategySchema, getSymbol, getWalkerSchema, hasTradeContext, backtest as lib, listExchangeSchema, listFrameSchema, listOptimizerSchema, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenBacktestProgress, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenOptimizerProgress, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalLive, listenSignalLiveOnce, listenSignalOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideOptimizerSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, roundTicks, set, setColumns, setConfig, setLogger, stopStrategy, validate };