backtest-kit 2.3.3 → 3.0.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/README.md +49 -0
- package/build/index.cjs +2115 -947
- package/build/index.mjs +2114 -948
- package/package.json +1 -1
- package/types.d.ts +331 -117
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -13333,6 +13333,336 @@ declare const StorageLive: StorageLiveAdapter;
|
|
|
13333
13333
|
*/
|
|
13334
13334
|
declare const StorageBacktest: StorageBacktestAdapter;
|
|
13335
13335
|
|
|
13336
|
+
/**
|
|
13337
|
+
* Base interface for notification adapters.
|
|
13338
|
+
* All notification adapters must implement this interface.
|
|
13339
|
+
*/
|
|
13340
|
+
interface INotificationUtils {
|
|
13341
|
+
/**
|
|
13342
|
+
* Handles signal events (opened, closed, scheduled, cancelled).
|
|
13343
|
+
* @param data - The strategy tick result data
|
|
13344
|
+
*/
|
|
13345
|
+
handleSignal(data: IStrategyTickResult): Promise<void>;
|
|
13346
|
+
/**
|
|
13347
|
+
* Handles partial profit availability event.
|
|
13348
|
+
* @param data - The partial profit contract data
|
|
13349
|
+
*/
|
|
13350
|
+
handlePartialProfit(data: PartialProfitContract): Promise<void>;
|
|
13351
|
+
/**
|
|
13352
|
+
* Handles partial loss availability event.
|
|
13353
|
+
* @param data - The partial loss contract data
|
|
13354
|
+
*/
|
|
13355
|
+
handlePartialLoss(data: PartialLossContract): Promise<void>;
|
|
13356
|
+
/**
|
|
13357
|
+
* Handles breakeven availability event.
|
|
13358
|
+
* @param data - The breakeven contract data
|
|
13359
|
+
*/
|
|
13360
|
+
handleBreakeven(data: BreakevenContract): Promise<void>;
|
|
13361
|
+
/**
|
|
13362
|
+
* Handles strategy commit events (partial-profit, breakeven, trailing, etc.).
|
|
13363
|
+
* @param data - The strategy commit contract data
|
|
13364
|
+
*/
|
|
13365
|
+
handleStrategyCommit(data: StrategyCommitContract): Promise<void>;
|
|
13366
|
+
/**
|
|
13367
|
+
* Handles risk rejection event.
|
|
13368
|
+
* @param data - The risk contract data
|
|
13369
|
+
*/
|
|
13370
|
+
handleRisk(data: RiskContract): Promise<void>;
|
|
13371
|
+
/**
|
|
13372
|
+
* Handles error event.
|
|
13373
|
+
* @param error - The error object
|
|
13374
|
+
*/
|
|
13375
|
+
handleError(error: Error): Promise<void>;
|
|
13376
|
+
/**
|
|
13377
|
+
* Handles critical error event.
|
|
13378
|
+
* @param error - The error object
|
|
13379
|
+
*/
|
|
13380
|
+
handleCriticalError(error: Error): Promise<void>;
|
|
13381
|
+
/**
|
|
13382
|
+
* Handles validation error event.
|
|
13383
|
+
* @param error - The error object
|
|
13384
|
+
*/
|
|
13385
|
+
handleValidationError(error: Error): Promise<void>;
|
|
13386
|
+
/**
|
|
13387
|
+
* Gets all stored notifications.
|
|
13388
|
+
* @returns Array of all notification models
|
|
13389
|
+
*/
|
|
13390
|
+
getData(): Promise<NotificationModel[]>;
|
|
13391
|
+
/**
|
|
13392
|
+
* Clears all stored notifications.
|
|
13393
|
+
*/
|
|
13394
|
+
clear(): Promise<void>;
|
|
13395
|
+
}
|
|
13396
|
+
/**
|
|
13397
|
+
* Constructor type for notification adapters.
|
|
13398
|
+
* Used for custom notification implementations.
|
|
13399
|
+
*/
|
|
13400
|
+
type TNotificationUtilsCtor = new () => INotificationUtils;
|
|
13401
|
+
/**
|
|
13402
|
+
* Backtest notification adapter with pluggable notification backend.
|
|
13403
|
+
*
|
|
13404
|
+
* Features:
|
|
13405
|
+
* - Adapter pattern for swappable notification implementations
|
|
13406
|
+
* - Default adapter: NotificationMemoryBacktestUtils (in-memory storage)
|
|
13407
|
+
* - Alternative adapters: NotificationPersistBacktestUtils, NotificationDummyBacktestUtils
|
|
13408
|
+
* - Convenience methods: usePersist(), useMemory(), useDummy()
|
|
13409
|
+
*/
|
|
13410
|
+
declare class NotificationBacktestAdapter implements INotificationUtils {
|
|
13411
|
+
/** Internal notification utils instance */
|
|
13412
|
+
private _notificationBacktestUtils;
|
|
13413
|
+
/**
|
|
13414
|
+
* Handles signal events.
|
|
13415
|
+
* Proxies call to the underlying notification adapter.
|
|
13416
|
+
* @param data - The strategy tick result data
|
|
13417
|
+
*/
|
|
13418
|
+
handleSignal: (data: IStrategyTickResult) => Promise<void>;
|
|
13419
|
+
/**
|
|
13420
|
+
* Handles partial profit availability event.
|
|
13421
|
+
* Proxies call to the underlying notification adapter.
|
|
13422
|
+
* @param data - The partial profit contract data
|
|
13423
|
+
*/
|
|
13424
|
+
handlePartialProfit: (data: PartialProfitContract) => Promise<void>;
|
|
13425
|
+
/**
|
|
13426
|
+
* Handles partial loss availability event.
|
|
13427
|
+
* Proxies call to the underlying notification adapter.
|
|
13428
|
+
* @param data - The partial loss contract data
|
|
13429
|
+
*/
|
|
13430
|
+
handlePartialLoss: (data: PartialLossContract) => Promise<void>;
|
|
13431
|
+
/**
|
|
13432
|
+
* Handles breakeven availability event.
|
|
13433
|
+
* Proxies call to the underlying notification adapter.
|
|
13434
|
+
* @param data - The breakeven contract data
|
|
13435
|
+
*/
|
|
13436
|
+
handleBreakeven: (data: BreakevenContract) => Promise<void>;
|
|
13437
|
+
/**
|
|
13438
|
+
* Handles strategy commit events.
|
|
13439
|
+
* Proxies call to the underlying notification adapter.
|
|
13440
|
+
* @param data - The strategy commit contract data
|
|
13441
|
+
*/
|
|
13442
|
+
handleStrategyCommit: (data: StrategyCommitContract) => Promise<void>;
|
|
13443
|
+
/**
|
|
13444
|
+
* Handles risk rejection event.
|
|
13445
|
+
* Proxies call to the underlying notification adapter.
|
|
13446
|
+
* @param data - The risk contract data
|
|
13447
|
+
*/
|
|
13448
|
+
handleRisk: (data: RiskContract) => Promise<void>;
|
|
13449
|
+
/**
|
|
13450
|
+
* Handles error event.
|
|
13451
|
+
* Proxies call to the underlying notification adapter.
|
|
13452
|
+
* @param error - The error object
|
|
13453
|
+
*/
|
|
13454
|
+
handleError: (error: Error) => Promise<void>;
|
|
13455
|
+
/**
|
|
13456
|
+
* Handles critical error event.
|
|
13457
|
+
* Proxies call to the underlying notification adapter.
|
|
13458
|
+
* @param error - The error object
|
|
13459
|
+
*/
|
|
13460
|
+
handleCriticalError: (error: Error) => Promise<void>;
|
|
13461
|
+
/**
|
|
13462
|
+
* Handles validation error event.
|
|
13463
|
+
* Proxies call to the underlying notification adapter.
|
|
13464
|
+
* @param error - The error object
|
|
13465
|
+
*/
|
|
13466
|
+
handleValidationError: (error: Error) => Promise<void>;
|
|
13467
|
+
/**
|
|
13468
|
+
* Gets all stored notifications.
|
|
13469
|
+
* Proxies call to the underlying notification adapter.
|
|
13470
|
+
* @returns Array of all notification models
|
|
13471
|
+
*/
|
|
13472
|
+
getData: () => Promise<NotificationModel[]>;
|
|
13473
|
+
/**
|
|
13474
|
+
* Clears all stored notifications.
|
|
13475
|
+
* Proxies call to the underlying notification adapter.
|
|
13476
|
+
*/
|
|
13477
|
+
clear: () => Promise<void>;
|
|
13478
|
+
/**
|
|
13479
|
+
* Sets the notification adapter constructor.
|
|
13480
|
+
* All future notification operations will use this adapter.
|
|
13481
|
+
*
|
|
13482
|
+
* @param Ctor - Constructor for notification adapter
|
|
13483
|
+
*/
|
|
13484
|
+
useNotificationAdapter: (Ctor: TNotificationUtilsCtor) => void;
|
|
13485
|
+
/**
|
|
13486
|
+
* Switches to dummy notification adapter.
|
|
13487
|
+
* All future notification writes will be no-ops.
|
|
13488
|
+
*/
|
|
13489
|
+
useDummy: () => void;
|
|
13490
|
+
/**
|
|
13491
|
+
* Switches to in-memory notification adapter (default).
|
|
13492
|
+
* Notifications will be stored in memory only.
|
|
13493
|
+
*/
|
|
13494
|
+
useMemory: () => void;
|
|
13495
|
+
/**
|
|
13496
|
+
* Switches to persistent notification adapter.
|
|
13497
|
+
* Notifications will be persisted to disk.
|
|
13498
|
+
*/
|
|
13499
|
+
usePersist: () => void;
|
|
13500
|
+
}
|
|
13501
|
+
/**
|
|
13502
|
+
* Live trading notification adapter with pluggable notification backend.
|
|
13503
|
+
*
|
|
13504
|
+
* Features:
|
|
13505
|
+
* - Adapter pattern for swappable notification implementations
|
|
13506
|
+
* - Default adapter: NotificationMemoryLiveUtils (in-memory storage)
|
|
13507
|
+
* - Alternative adapters: NotificationPersistLiveUtils, NotificationDummyLiveUtils
|
|
13508
|
+
* - Convenience methods: usePersist(), useMemory(), useDummy()
|
|
13509
|
+
*/
|
|
13510
|
+
declare class NotificationLiveAdapter implements INotificationUtils {
|
|
13511
|
+
/** Internal notification utils instance */
|
|
13512
|
+
private _notificationLiveUtils;
|
|
13513
|
+
/**
|
|
13514
|
+
* Handles signal events.
|
|
13515
|
+
* Proxies call to the underlying notification adapter.
|
|
13516
|
+
* @param data - The strategy tick result data
|
|
13517
|
+
*/
|
|
13518
|
+
handleSignal: (data: IStrategyTickResult) => Promise<void>;
|
|
13519
|
+
/**
|
|
13520
|
+
* Handles partial profit availability event.
|
|
13521
|
+
* Proxies call to the underlying notification adapter.
|
|
13522
|
+
* @param data - The partial profit contract data
|
|
13523
|
+
*/
|
|
13524
|
+
handlePartialProfit: (data: PartialProfitContract) => Promise<void>;
|
|
13525
|
+
/**
|
|
13526
|
+
* Handles partial loss availability event.
|
|
13527
|
+
* Proxies call to the underlying notification adapter.
|
|
13528
|
+
* @param data - The partial loss contract data
|
|
13529
|
+
*/
|
|
13530
|
+
handlePartialLoss: (data: PartialLossContract) => Promise<void>;
|
|
13531
|
+
/**
|
|
13532
|
+
* Handles breakeven availability event.
|
|
13533
|
+
* Proxies call to the underlying notification adapter.
|
|
13534
|
+
* @param data - The breakeven contract data
|
|
13535
|
+
*/
|
|
13536
|
+
handleBreakeven: (data: BreakevenContract) => Promise<void>;
|
|
13537
|
+
/**
|
|
13538
|
+
* Handles strategy commit events.
|
|
13539
|
+
* Proxies call to the underlying notification adapter.
|
|
13540
|
+
* @param data - The strategy commit contract data
|
|
13541
|
+
*/
|
|
13542
|
+
handleStrategyCommit: (data: StrategyCommitContract) => Promise<void>;
|
|
13543
|
+
/**
|
|
13544
|
+
* Handles risk rejection event.
|
|
13545
|
+
* Proxies call to the underlying notification adapter.
|
|
13546
|
+
* @param data - The risk contract data
|
|
13547
|
+
*/
|
|
13548
|
+
handleRisk: (data: RiskContract) => Promise<void>;
|
|
13549
|
+
/**
|
|
13550
|
+
* Handles error event.
|
|
13551
|
+
* Proxies call to the underlying notification adapter.
|
|
13552
|
+
* @param error - The error object
|
|
13553
|
+
*/
|
|
13554
|
+
handleError: (error: Error) => Promise<void>;
|
|
13555
|
+
/**
|
|
13556
|
+
* Handles critical error event.
|
|
13557
|
+
* Proxies call to the underlying notification adapter.
|
|
13558
|
+
* @param error - The error object
|
|
13559
|
+
*/
|
|
13560
|
+
handleCriticalError: (error: Error) => Promise<void>;
|
|
13561
|
+
/**
|
|
13562
|
+
* Handles validation error event.
|
|
13563
|
+
* Proxies call to the underlying notification adapter.
|
|
13564
|
+
* @param error - The error object
|
|
13565
|
+
*/
|
|
13566
|
+
handleValidationError: (error: Error) => Promise<void>;
|
|
13567
|
+
/**
|
|
13568
|
+
* Gets all stored notifications.
|
|
13569
|
+
* Proxies call to the underlying notification adapter.
|
|
13570
|
+
* @returns Array of all notification models
|
|
13571
|
+
*/
|
|
13572
|
+
getData: () => Promise<NotificationModel[]>;
|
|
13573
|
+
/**
|
|
13574
|
+
* Clears all stored notifications.
|
|
13575
|
+
* Proxies call to the underlying notification adapter.
|
|
13576
|
+
*/
|
|
13577
|
+
clear: () => Promise<void>;
|
|
13578
|
+
/**
|
|
13579
|
+
* Sets the notification adapter constructor.
|
|
13580
|
+
* All future notification operations will use this adapter.
|
|
13581
|
+
*
|
|
13582
|
+
* @param Ctor - Constructor for notification adapter
|
|
13583
|
+
*/
|
|
13584
|
+
useNotificationAdapter: (Ctor: TNotificationUtilsCtor) => void;
|
|
13585
|
+
/**
|
|
13586
|
+
* Switches to dummy notification adapter.
|
|
13587
|
+
* All future notification writes will be no-ops.
|
|
13588
|
+
*/
|
|
13589
|
+
useDummy: () => void;
|
|
13590
|
+
/**
|
|
13591
|
+
* Switches to in-memory notification adapter (default).
|
|
13592
|
+
* Notifications will be stored in memory only.
|
|
13593
|
+
*/
|
|
13594
|
+
useMemory: () => void;
|
|
13595
|
+
/**
|
|
13596
|
+
* Switches to persistent notification adapter.
|
|
13597
|
+
* Notifications will be persisted to disk.
|
|
13598
|
+
*/
|
|
13599
|
+
usePersist: () => void;
|
|
13600
|
+
}
|
|
13601
|
+
/**
|
|
13602
|
+
* Main notification adapter that manages both backtest and live notification storage.
|
|
13603
|
+
*
|
|
13604
|
+
* Features:
|
|
13605
|
+
* - Subscribes to signal emitters for automatic notification updates
|
|
13606
|
+
* - Provides unified access to both backtest and live notifications
|
|
13607
|
+
* - Singleshot enable pattern prevents duplicate subscriptions
|
|
13608
|
+
* - Cleanup function for proper unsubscription
|
|
13609
|
+
*/
|
|
13610
|
+
declare class NotificationAdapter {
|
|
13611
|
+
/**
|
|
13612
|
+
* Enables notification storage by subscribing to signal emitters.
|
|
13613
|
+
* Uses singleshot to ensure one-time subscription.
|
|
13614
|
+
*
|
|
13615
|
+
* @returns Cleanup function that unsubscribes from all emitters
|
|
13616
|
+
*/
|
|
13617
|
+
enable: (() => () => void) & functools_kit.ISingleshotClearable;
|
|
13618
|
+
/**
|
|
13619
|
+
* Disables notification storage by unsubscribing from all emitters.
|
|
13620
|
+
* Safe to call multiple times.
|
|
13621
|
+
*/
|
|
13622
|
+
disable: () => void;
|
|
13623
|
+
/**
|
|
13624
|
+
* Gets all backtest notifications from storage.
|
|
13625
|
+
*
|
|
13626
|
+
* @returns Array of all backtest notification models
|
|
13627
|
+
* @throws Error if NotificationAdapter is not enabled
|
|
13628
|
+
*/
|
|
13629
|
+
getDataBacktest: () => Promise<NotificationModel[]>;
|
|
13630
|
+
/**
|
|
13631
|
+
* Gets all live notifications from storage.
|
|
13632
|
+
*
|
|
13633
|
+
* @returns Array of all live notification models
|
|
13634
|
+
* @throws Error if NotificationAdapter is not enabled
|
|
13635
|
+
*/
|
|
13636
|
+
getDataLive: () => Promise<NotificationModel[]>;
|
|
13637
|
+
/**
|
|
13638
|
+
* Clears all backtest notifications from storage.
|
|
13639
|
+
*
|
|
13640
|
+
* @throws Error if NotificationAdapter is not enabled
|
|
13641
|
+
*/
|
|
13642
|
+
clearBacktest: () => Promise<void>;
|
|
13643
|
+
/**
|
|
13644
|
+
* Clears all live notifications from storage.
|
|
13645
|
+
*
|
|
13646
|
+
* @throws Error if NotificationAdapter is not enabled
|
|
13647
|
+
*/
|
|
13648
|
+
clearLive: () => Promise<void>;
|
|
13649
|
+
}
|
|
13650
|
+
/**
|
|
13651
|
+
* Global singleton instance of NotificationAdapter.
|
|
13652
|
+
* Provides unified notification management for backtest and live trading.
|
|
13653
|
+
*/
|
|
13654
|
+
declare const Notification: NotificationAdapter;
|
|
13655
|
+
/**
|
|
13656
|
+
* Global singleton instance of NotificationLiveAdapter.
|
|
13657
|
+
* Provides live trading notification storage with pluggable backends.
|
|
13658
|
+
*/
|
|
13659
|
+
declare const NotificationLive: NotificationLiveAdapter;
|
|
13660
|
+
/**
|
|
13661
|
+
* Global singleton instance of NotificationBacktestAdapter.
|
|
13662
|
+
* Provides backtest notification storage with pluggable backends.
|
|
13663
|
+
*/
|
|
13664
|
+
declare const NotificationBacktest: NotificationBacktestAdapter;
|
|
13665
|
+
|
|
13336
13666
|
/**
|
|
13337
13667
|
* Utility class for exchange operations.
|
|
13338
13668
|
*
|
|
@@ -13597,122 +13927,6 @@ declare class CacheUtils {
|
|
|
13597
13927
|
*/
|
|
13598
13928
|
declare const Cache: CacheUtils;
|
|
13599
13929
|
|
|
13600
|
-
/**
|
|
13601
|
-
* Public facade for notification operations.
|
|
13602
|
-
*
|
|
13603
|
-
* Automatically subscribes on first use and provides simplified access to notification instance methods.
|
|
13604
|
-
*
|
|
13605
|
-
* @example
|
|
13606
|
-
* ```typescript
|
|
13607
|
-
* import { Notification } from "./classes/Notification";
|
|
13608
|
-
*
|
|
13609
|
-
* // Get all notifications (auto-subscribes if not subscribed)
|
|
13610
|
-
* const all = await Notification.getData();
|
|
13611
|
-
*
|
|
13612
|
-
* // Process notifications with type discrimination
|
|
13613
|
-
* all.forEach(notification => {
|
|
13614
|
-
* switch (notification.type) {
|
|
13615
|
-
* case "signal.closed":
|
|
13616
|
-
* console.log(`Closed: ${notification.pnlPercentage}%`);
|
|
13617
|
-
* break;
|
|
13618
|
-
* case "partial.loss":
|
|
13619
|
-
* if (notification.level >= 30) {
|
|
13620
|
-
* alert("High loss!");
|
|
13621
|
-
* }
|
|
13622
|
-
* break;
|
|
13623
|
-
* case "risk.rejection":
|
|
13624
|
-
* console.warn(notification.rejectionNote);
|
|
13625
|
-
* break;
|
|
13626
|
-
* }
|
|
13627
|
-
* });
|
|
13628
|
-
*
|
|
13629
|
-
* // Clear history
|
|
13630
|
-
* await Notification.clear();
|
|
13631
|
-
*
|
|
13632
|
-
* // Unsubscribe when done
|
|
13633
|
-
* await Notification.unsubscribe();
|
|
13634
|
-
* ```
|
|
13635
|
-
*/
|
|
13636
|
-
declare class NotificationUtils {
|
|
13637
|
-
/** Internal instance containing business logic */
|
|
13638
|
-
private _instance;
|
|
13639
|
-
/**
|
|
13640
|
-
* Returns all notifications in chronological order (newest first).
|
|
13641
|
-
* Automatically subscribes to emitters if not already subscribed.
|
|
13642
|
-
*
|
|
13643
|
-
* @returns Array of strongly-typed notification objects
|
|
13644
|
-
*
|
|
13645
|
-
* @example
|
|
13646
|
-
* ```typescript
|
|
13647
|
-
* const notifications = await Notification.getData();
|
|
13648
|
-
*
|
|
13649
|
-
* notifications.forEach(notification => {
|
|
13650
|
-
* switch (notification.type) {
|
|
13651
|
-
* case "signal.closed":
|
|
13652
|
-
* console.log(`${notification.symbol}: ${notification.pnlPercentage}%`);
|
|
13653
|
-
* break;
|
|
13654
|
-
* case "partial.loss":
|
|
13655
|
-
* if (notification.level >= 30) {
|
|
13656
|
-
* console.warn(`High loss: ${notification.symbol}`);
|
|
13657
|
-
* }
|
|
13658
|
-
* break;
|
|
13659
|
-
* }
|
|
13660
|
-
* });
|
|
13661
|
-
* ```
|
|
13662
|
-
*/
|
|
13663
|
-
getData(): Promise<NotificationModel[]>;
|
|
13664
|
-
/**
|
|
13665
|
-
* Clears all notification history.
|
|
13666
|
-
* Automatically subscribes to emitters if not already subscribed.
|
|
13667
|
-
*
|
|
13668
|
-
* @example
|
|
13669
|
-
* ```typescript
|
|
13670
|
-
* await Notification.clear();
|
|
13671
|
-
* ```
|
|
13672
|
-
*/
|
|
13673
|
-
clear(): Promise<void>;
|
|
13674
|
-
/**
|
|
13675
|
-
* Unsubscribes from all notification emitters.
|
|
13676
|
-
* Call this when you no longer need to collect notifications.
|
|
13677
|
-
*
|
|
13678
|
-
* @example
|
|
13679
|
-
* ```typescript
|
|
13680
|
-
* await Notification.unsubscribe();
|
|
13681
|
-
* ```
|
|
13682
|
-
*/
|
|
13683
|
-
enable(): Promise<void>;
|
|
13684
|
-
/**
|
|
13685
|
-
* Unsubscribes from all notification emitters.
|
|
13686
|
-
* Call this when you no longer need to collect notifications.
|
|
13687
|
-
* @example
|
|
13688
|
-
* ```typescript
|
|
13689
|
-
* await Notification.unsubscribe();
|
|
13690
|
-
* ```
|
|
13691
|
-
*/
|
|
13692
|
-
disable(): Promise<void>;
|
|
13693
|
-
}
|
|
13694
|
-
/**
|
|
13695
|
-
* Singleton instance of NotificationUtils for convenient notification access.
|
|
13696
|
-
*
|
|
13697
|
-
* @example
|
|
13698
|
-
* ```typescript
|
|
13699
|
-
* import { Notification } from "./classes/Notification";
|
|
13700
|
-
*
|
|
13701
|
-
* // Get all notifications
|
|
13702
|
-
* const all = await Notification.getData();
|
|
13703
|
-
*
|
|
13704
|
-
* // Filter by type using type discrimination
|
|
13705
|
-
* const closedSignals = all.filter(n => n.type === "signal.closed");
|
|
13706
|
-
* const highLosses = all.filter(n =>
|
|
13707
|
-
* n.type === "partial.loss" && n.level >= 30
|
|
13708
|
-
* );
|
|
13709
|
-
*
|
|
13710
|
-
* // Clear history
|
|
13711
|
-
* await Notification.clear();
|
|
13712
|
-
* ```
|
|
13713
|
-
*/
|
|
13714
|
-
declare const Notification: NotificationUtils;
|
|
13715
|
-
|
|
13716
13930
|
/**
|
|
13717
13931
|
* Type alias for column configuration used in breakeven markdown reports.
|
|
13718
13932
|
*
|
|
@@ -20456,4 +20670,4 @@ declare const backtest: {
|
|
|
20456
20670
|
loggerService: LoggerService;
|
|
20457
20671
|
};
|
|
20458
20672
|
|
|
20459
|
-
export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, Backtest, type BacktestStatisticsModel, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, Cache, type CancelScheduledCommit, type CandleData, type CandleInterval, type ClosePendingCommit, type ColumnConfig, type ColumnModel, Constant, type CriticalErrorNotification, type DoneContract, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, type IActivateScheduledCommitRow, type IBidData, type IBreakevenCommitRow, type ICandleData, type ICommitRow, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type IMarkdownDumpOptions, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicSignalRow, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISignalDto, 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 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 InfoErrorNotification, Live, type LiveStatisticsModel, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MethodContextService, type MetricStats, Notification, type NotificationModel, 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, PersistCandleAdapter, PersistPartialAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistSignalAdapter, PersistStorageAdapter, PositionSize, type ProgressBacktestContract, 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, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyEvent, type StrategyStatisticsModel, type TMarkdownBase, type TPersistBase, type TPersistBaseCtor, type TReportBase, 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, commitActivateScheduled, commitBreakeven, commitCancelScheduled, commitClosePending, commitPartialLoss, commitPartialProfit, commitTrailingStop, commitTrailingTake, emitters, formatPrice, formatQuantity, get, getActionSchema, getAveragePrice, getBacktestTimeframe, getCandles, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getExchangeSchema, getFrameSchema, getMode, getNextCandles, getOrderBook, getRawCandles, getRiskSchema, getSizingSchema, getStrategySchema, getSymbol, getWalkerSchema, hasTradeContext, backtest as lib, listExchangeSchema, listFrameSchema, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenBacktestProgress, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalLive, listenSignalLiveOnce, listenSignalOnce, listenStrategyCommit, listenStrategyCommitOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, roundTicks, set, setColumns, setConfig, setLogger, stopStrategy, validate };
|
|
20673
|
+
export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, Backtest, type BacktestStatisticsModel, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, Cache, type CancelScheduledCommit, type CandleData, type CandleInterval, type ClosePendingCommit, type ColumnConfig, type ColumnModel, Constant, type CriticalErrorNotification, type DoneContract, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, type IActivateScheduledCommitRow, type IBidData, type IBreakevenCommitRow, type ICandleData, type ICommitRow, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type IMarkdownDumpOptions, type INotificationUtils, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicSignalRow, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISignalDto, 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 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 InfoErrorNotification, Live, type LiveStatisticsModel, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MethodContextService, type MetricStats, Notification, NotificationBacktest, NotificationLive, type NotificationModel, 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, PersistCandleAdapter, PersistPartialAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistSignalAdapter, PersistStorageAdapter, PositionSize, type ProgressBacktestContract, 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, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyEvent, type StrategyStatisticsModel, type TMarkdownBase, type TNotificationUtilsCtor, type TPersistBase, type TPersistBaseCtor, type TReportBase, 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, commitActivateScheduled, commitBreakeven, commitCancelScheduled, commitClosePending, commitPartialLoss, commitPartialProfit, commitTrailingStop, commitTrailingTake, emitters, formatPrice, formatQuantity, get, getActionSchema, getAveragePrice, getBacktestTimeframe, getCandles, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getExchangeSchema, getFrameSchema, getMode, getNextCandles, getOrderBook, getRawCandles, getRiskSchema, getSizingSchema, getStrategySchema, getSymbol, getWalkerSchema, hasTradeContext, backtest as lib, listExchangeSchema, listFrameSchema, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenBacktestProgress, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalLive, listenSignalLiveOnce, listenSignalOnce, listenStrategyCommit, listenStrategyCommitOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, roundTicks, set, setColumns, setConfig, setLogger, stopStrategy, validate };
|