backtest-kit 6.14.0 → 6.15.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/build/index.cjs +470 -31
- package/build/index.mjs +469 -32
- package/package.json +1 -1
- package/types.d.ts +286 -2
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -3526,6 +3526,26 @@ interface IStrategy {
|
|
|
3526
3526
|
* @returns Promise resolving to remaining minutes (≥ 0) or null
|
|
3527
3527
|
*/
|
|
3528
3528
|
getPositionCountdownMinutes: (symbol: string, timestamp: number) => Promise<number | null>;
|
|
3529
|
+
/**
|
|
3530
|
+
* Returns the number of minutes the position has been active since it opened.
|
|
3531
|
+
*
|
|
3532
|
+
* Returns null if no pending signal exists.
|
|
3533
|
+
*
|
|
3534
|
+
* @param symbol - Trading pair symbol
|
|
3535
|
+
* @param timestamp - Current Unix timestamp in milliseconds
|
|
3536
|
+
* @returns Promise resolving to active minutes (≥ 0) or null
|
|
3537
|
+
*/
|
|
3538
|
+
getPositionActiveMinutes: (symbol: string, timestamp: number) => Promise<number | null>;
|
|
3539
|
+
/**
|
|
3540
|
+
* Returns the number of minutes the scheduled signal has been waiting for activation.
|
|
3541
|
+
*
|
|
3542
|
+
* Returns null if no scheduled signal exists.
|
|
3543
|
+
*
|
|
3544
|
+
* @param symbol - Trading pair symbol
|
|
3545
|
+
* @param timestamp - Current Unix timestamp in milliseconds
|
|
3546
|
+
* @returns Promise resolving to waiting minutes (≥ 0) or null
|
|
3547
|
+
*/
|
|
3548
|
+
getPositionWaitingMinutes: (symbol: string, timestamp: number) => Promise<number | null>;
|
|
3529
3549
|
/**
|
|
3530
3550
|
* Returns the best price reached in the profit direction during this position's life.
|
|
3531
3551
|
*
|
|
@@ -5520,6 +5540,40 @@ declare function getPositionEstimateMinutes(symbol: string): Promise<number>;
|
|
|
5520
5540
|
* ```
|
|
5521
5541
|
*/
|
|
5522
5542
|
declare function getPositionCountdownMinutes(symbol: string): Promise<number>;
|
|
5543
|
+
/**
|
|
5544
|
+
* Returns the number of minutes the position has been active since it opened.
|
|
5545
|
+
*
|
|
5546
|
+
* Returns null if no pending signal exists.
|
|
5547
|
+
*
|
|
5548
|
+
* @param symbol - Trading pair symbol
|
|
5549
|
+
* @returns Promise resolving to active minutes (≥ 0) or null
|
|
5550
|
+
*
|
|
5551
|
+
* @example
|
|
5552
|
+
* ```typescript
|
|
5553
|
+
* import { getPositionActiveMinutes } from "backtest-kit";
|
|
5554
|
+
*
|
|
5555
|
+
* const minutes = await getPositionActiveMinutes("BTCUSDT");
|
|
5556
|
+
* // e.g. 120 (position has been open for 2 hours)
|
|
5557
|
+
* ```
|
|
5558
|
+
*/
|
|
5559
|
+
declare function getPositionActiveMinutes(symbol: string): Promise<number>;
|
|
5560
|
+
/**
|
|
5561
|
+
* Returns the number of minutes the scheduled signal has been waiting for activation.
|
|
5562
|
+
*
|
|
5563
|
+
* Returns null if no scheduled signal exists.
|
|
5564
|
+
*
|
|
5565
|
+
* @param symbol - Trading pair symbol
|
|
5566
|
+
* @returns Promise resolving to waiting minutes (≥ 0) or null
|
|
5567
|
+
*
|
|
5568
|
+
* @example
|
|
5569
|
+
* ```typescript
|
|
5570
|
+
* import { getPositionWaitingMinutes } from "backtest-kit";
|
|
5571
|
+
*
|
|
5572
|
+
* const minutes = await getPositionWaitingMinutes("BTCUSDT");
|
|
5573
|
+
* // e.g. 15 (scheduled signal has been waiting 15 minutes for activation)
|
|
5574
|
+
* ```
|
|
5575
|
+
*/
|
|
5576
|
+
declare function getPositionWaitingMinutes(symbol: string): Promise<number>;
|
|
5523
5577
|
/**
|
|
5524
5578
|
* Returns the best price reached in the profit direction during this position's life.
|
|
5525
5579
|
*
|
|
@@ -14352,6 +14406,34 @@ declare class BacktestUtils {
|
|
|
14352
14406
|
exchangeName: ExchangeName;
|
|
14353
14407
|
frameName: FrameName;
|
|
14354
14408
|
}) => Promise<number>;
|
|
14409
|
+
/**
|
|
14410
|
+
* Returns the number of minutes the position has been active since it opened.
|
|
14411
|
+
*
|
|
14412
|
+
* Returns null if no pending signal exists.
|
|
14413
|
+
*
|
|
14414
|
+
* @param symbol - Trading pair symbol
|
|
14415
|
+
* @param context - Execution context with strategyName, exchangeName, and frameName
|
|
14416
|
+
* @returns Active minutes (≥ 0), or null if no active position
|
|
14417
|
+
*/
|
|
14418
|
+
getPositionActiveMinutes: (symbol: string, context: {
|
|
14419
|
+
strategyName: StrategyName;
|
|
14420
|
+
exchangeName: ExchangeName;
|
|
14421
|
+
frameName: FrameName;
|
|
14422
|
+
}) => Promise<number>;
|
|
14423
|
+
/**
|
|
14424
|
+
* Returns the number of minutes the scheduled signal has been waiting for activation.
|
|
14425
|
+
*
|
|
14426
|
+
* Returns null if no scheduled signal exists.
|
|
14427
|
+
*
|
|
14428
|
+
* @param symbol - Trading pair symbol
|
|
14429
|
+
* @param context - Execution context with strategyName, exchangeName, and frameName
|
|
14430
|
+
* @returns Waiting minutes (≥ 0), or null if no scheduled signal
|
|
14431
|
+
*/
|
|
14432
|
+
getPositionWaitingMinutes: (symbol: string, context: {
|
|
14433
|
+
strategyName: StrategyName;
|
|
14434
|
+
exchangeName: ExchangeName;
|
|
14435
|
+
frameName: FrameName;
|
|
14436
|
+
}) => Promise<number>;
|
|
14355
14437
|
/**
|
|
14356
14438
|
* Returns the best price reached in the profit direction during this position's life.
|
|
14357
14439
|
*
|
|
@@ -15836,6 +15918,32 @@ declare class LiveUtils {
|
|
|
15836
15918
|
strategyName: StrategyName;
|
|
15837
15919
|
exchangeName: ExchangeName;
|
|
15838
15920
|
}) => Promise<number>;
|
|
15921
|
+
/**
|
|
15922
|
+
* Returns the number of minutes the position has been active since it opened.
|
|
15923
|
+
*
|
|
15924
|
+
* Returns null if no pending signal exists.
|
|
15925
|
+
*
|
|
15926
|
+
* @param symbol - Trading pair symbol
|
|
15927
|
+
* @param context - Execution context with strategyName and exchangeName
|
|
15928
|
+
* @returns Active minutes (≥ 0), or null if no active position
|
|
15929
|
+
*/
|
|
15930
|
+
getPositionActiveMinutes: (symbol: string, context: {
|
|
15931
|
+
strategyName: StrategyName;
|
|
15932
|
+
exchangeName: ExchangeName;
|
|
15933
|
+
}) => Promise<number>;
|
|
15934
|
+
/**
|
|
15935
|
+
* Returns the number of minutes the scheduled signal has been waiting for activation.
|
|
15936
|
+
*
|
|
15937
|
+
* Returns null if no scheduled signal exists.
|
|
15938
|
+
*
|
|
15939
|
+
* @param symbol - Trading pair symbol
|
|
15940
|
+
* @param context - Execution context with strategyName and exchangeName
|
|
15941
|
+
* @returns Waiting minutes (≥ 0), or null if no scheduled signal
|
|
15942
|
+
*/
|
|
15943
|
+
getPositionWaitingMinutes: (symbol: string, context: {
|
|
15944
|
+
strategyName: StrategyName;
|
|
15945
|
+
exchangeName: ExchangeName;
|
|
15946
|
+
}) => Promise<number>;
|
|
15839
15947
|
/**
|
|
15840
15948
|
* Returns the best price reached in the profit direction during this position's life.
|
|
15841
15949
|
*
|
|
@@ -19078,6 +19186,36 @@ declare class ReflectUtils {
|
|
|
19078
19186
|
exchangeName: ExchangeName;
|
|
19079
19187
|
frameName: FrameName;
|
|
19080
19188
|
}, backtest?: boolean) => Promise<boolean | null>;
|
|
19189
|
+
/**
|
|
19190
|
+
* Returns the number of minutes the position has been active since it opened.
|
|
19191
|
+
*
|
|
19192
|
+
* Returns null if no pending signal exists.
|
|
19193
|
+
*
|
|
19194
|
+
* @param symbol - Trading pair symbol
|
|
19195
|
+
* @param context - Execution context with strategyName, exchangeName and frameName
|
|
19196
|
+
* @param backtest - True if backtest mode, false if live mode (default: false)
|
|
19197
|
+
* @returns Promise resolving to active minutes (≥ 0) or null
|
|
19198
|
+
*/
|
|
19199
|
+
getPositionActiveMinutes: (symbol: string, context: {
|
|
19200
|
+
strategyName: StrategyName;
|
|
19201
|
+
exchangeName: ExchangeName;
|
|
19202
|
+
frameName: FrameName;
|
|
19203
|
+
}, backtest?: boolean) => Promise<number | null>;
|
|
19204
|
+
/**
|
|
19205
|
+
* Returns the number of minutes the scheduled signal has been waiting for activation.
|
|
19206
|
+
*
|
|
19207
|
+
* Returns null if no scheduled signal exists.
|
|
19208
|
+
*
|
|
19209
|
+
* @param symbol - Trading pair symbol
|
|
19210
|
+
* @param context - Execution context with strategyName, exchangeName and frameName
|
|
19211
|
+
* @param backtest - True if backtest mode, false if live mode (default: false)
|
|
19212
|
+
* @returns Promise resolving to waiting minutes (≥ 0) or null
|
|
19213
|
+
*/
|
|
19214
|
+
getPositionWaitingMinutes: (symbol: string, context: {
|
|
19215
|
+
strategyName: StrategyName;
|
|
19216
|
+
exchangeName: ExchangeName;
|
|
19217
|
+
frameName: FrameName;
|
|
19218
|
+
}, backtest?: boolean) => Promise<number | null>;
|
|
19081
19219
|
/**
|
|
19082
19220
|
* Returns the number of minutes elapsed since the highest profit price was recorded.
|
|
19083
19221
|
*
|
|
@@ -20698,6 +20836,94 @@ declare const RecentLive: RecentLiveAdapter;
|
|
|
20698
20836
|
*/
|
|
20699
20837
|
declare const RecentBacktest: RecentBacktestAdapter;
|
|
20700
20838
|
|
|
20839
|
+
/**
|
|
20840
|
+
* Defines which notification categories are enabled when calling `NotificationAdapter.enable()`.
|
|
20841
|
+
*
|
|
20842
|
+
* Pass an instance of this interface to selectively subscribe to only the event types you need.
|
|
20843
|
+
* When omitted, all categories default to `true` via `WILDCARD_TARGET`.
|
|
20844
|
+
*
|
|
20845
|
+
* @example
|
|
20846
|
+
* // Subscribe only to signal lifecycle and error events
|
|
20847
|
+
* notificationAdapter.enable({ signal: true, common_error: true, critical_error: true, validation_error: true,
|
|
20848
|
+
* partial_profit: false, partial_loss: false, breakeven: false, strategy_commit: false, signal_sync: false,
|
|
20849
|
+
* risk: false, info: false });
|
|
20850
|
+
*/
|
|
20851
|
+
interface INotificationTarget {
|
|
20852
|
+
/**
|
|
20853
|
+
* Signal lifecycle events emitted by the strategy engine.
|
|
20854
|
+
* Covers four actions: `signal.opened`, `signal.scheduled`, `signal.closed`, `signal.cancelled`.
|
|
20855
|
+
* Source: `signalBacktestEmitter` / `signalLiveEmitter` (IStrategyTickResult).
|
|
20856
|
+
*/
|
|
20857
|
+
signal: boolean;
|
|
20858
|
+
/**
|
|
20859
|
+
* Partial profit availability notifications (`partial_profit.available`).
|
|
20860
|
+
* Fired when the price reaches a partial-profit level defined in the strategy,
|
|
20861
|
+
* before the commit decision is made.
|
|
20862
|
+
* Source: `partialProfitSubject` (PartialProfitContract).
|
|
20863
|
+
*/
|
|
20864
|
+
partial_profit: boolean;
|
|
20865
|
+
/**
|
|
20866
|
+
* Partial loss availability notifications (`partial_loss.available`).
|
|
20867
|
+
* Fired when the price reaches a partial-loss level defined in the strategy,
|
|
20868
|
+
* before the commit decision is made.
|
|
20869
|
+
* Source: `partialLossSubject` (PartialLossContract).
|
|
20870
|
+
*/
|
|
20871
|
+
partial_loss: boolean;
|
|
20872
|
+
/**
|
|
20873
|
+
* Breakeven availability notifications (`breakeven.available`).
|
|
20874
|
+
* Fired when the price reaches the breakeven level, before the commit is applied.
|
|
20875
|
+
* Source: `breakevenSubject` (BreakevenContract).
|
|
20876
|
+
*/
|
|
20877
|
+
breakeven: boolean;
|
|
20878
|
+
/**
|
|
20879
|
+
* Strategy commit confirmations.
|
|
20880
|
+
* Covers all committed actions: `partial_profit.commit`, `partial_loss.commit`,
|
|
20881
|
+
* `breakeven.commit`, `trailing_stop.commit`, `trailing_take.commit`,
|
|
20882
|
+
* `activate_scheduled.commit`, `average_buy.commit`, `cancel_scheduled.commit`,
|
|
20883
|
+
* `close_pending.commit`.
|
|
20884
|
+
* Source: `strategyCommitSubject` (StrategyCommitContract).
|
|
20885
|
+
*/
|
|
20886
|
+
strategy_commit: boolean;
|
|
20887
|
+
/**
|
|
20888
|
+
* Signal synchronization events for live trading (`signal_sync.open`, `signal_sync.close`).
|
|
20889
|
+
* Fired when a limit order is confirmed filled (`signal-open`) or when an open
|
|
20890
|
+
* position is confirmed exited (`signal-close`) by the exchange sync layer.
|
|
20891
|
+
* Source: `syncSubject` (SignalSyncContract).
|
|
20892
|
+
*/
|
|
20893
|
+
signal_sync: boolean;
|
|
20894
|
+
/**
|
|
20895
|
+
* Risk manager rejection notifications (`risk.rejection`).
|
|
20896
|
+
* Fired when the risk manager blocks a new signal from opening due to
|
|
20897
|
+
* active position count limits or other risk rules.
|
|
20898
|
+
* Source: `riskSubject` (RiskContract).
|
|
20899
|
+
*/
|
|
20900
|
+
risk: boolean;
|
|
20901
|
+
/**
|
|
20902
|
+
* Informational signal notifications (`signal.info`).
|
|
20903
|
+
* Manual or strategy-triggered messages attached to an active signal,
|
|
20904
|
+
* carrying a `note` and optional `notificationId`.
|
|
20905
|
+
* Source: `signalNotifySubject` (SignalInfoContract).
|
|
20906
|
+
*/
|
|
20907
|
+
info: boolean;
|
|
20908
|
+
/**
|
|
20909
|
+
* Non-fatal runtime errors (`error.info`).
|
|
20910
|
+
* Emitted by the global `errorEmitter` for recoverable errors that are
|
|
20911
|
+
* caught and logged but do not terminate the process.
|
|
20912
|
+
*/
|
|
20913
|
+
common_error: boolean;
|
|
20914
|
+
/**
|
|
20915
|
+
* Critical (fatal) errors (`error.critical`).
|
|
20916
|
+
* Emitted by the global `exitEmitter` when an unrecoverable error
|
|
20917
|
+
* causes the backtest or live session to terminate.
|
|
20918
|
+
*/
|
|
20919
|
+
critical_error: boolean;
|
|
20920
|
+
/**
|
|
20921
|
+
* Validation errors (`error.validation`).
|
|
20922
|
+
* Emitted by `validationSubject` when strategy configuration or
|
|
20923
|
+
* input data fails schema/business-rule validation.
|
|
20924
|
+
*/
|
|
20925
|
+
validation_error: boolean;
|
|
20926
|
+
}
|
|
20701
20927
|
/**
|
|
20702
20928
|
* Base interface for notification adapters.
|
|
20703
20929
|
* All notification adapters must implement this interface.
|
|
@@ -21011,7 +21237,7 @@ declare class NotificationAdapter {
|
|
|
21011
21237
|
*
|
|
21012
21238
|
* @returns Cleanup function that unsubscribes from all emitters
|
|
21013
21239
|
*/
|
|
21014
|
-
enable: (() => () => void) & functools_kit.ISingleshotClearable;
|
|
21240
|
+
enable: (({ signal, info, partial_profit, partial_loss, breakeven, strategy_commit, signal_sync, risk, common_error, critical_error, validation_error, }?: INotificationTarget) => () => void) & functools_kit.ISingleshotClearable;
|
|
21015
21241
|
/**
|
|
21016
21242
|
* Disables notification storage by unsubscribing from all emitters.
|
|
21017
21243
|
* Safe to call multiple times.
|
|
@@ -26504,6 +26730,38 @@ declare class StrategyConnectionService implements TStrategy$1 {
|
|
|
26504
26730
|
exchangeName: ExchangeName;
|
|
26505
26731
|
frameName: FrameName;
|
|
26506
26732
|
}) => Promise<number | null>;
|
|
26733
|
+
/**
|
|
26734
|
+
* Returns the number of minutes the position has been active since it opened.
|
|
26735
|
+
*
|
|
26736
|
+
* Delegates to ClientStrategy.getPositionActiveMinutes().
|
|
26737
|
+
* Returns null if no pending signal exists.
|
|
26738
|
+
*
|
|
26739
|
+
* @param backtest - Whether running in backtest mode
|
|
26740
|
+
* @param symbol - Trading pair symbol
|
|
26741
|
+
* @param context - Execution context with strategyName, exchangeName, frameName
|
|
26742
|
+
* @returns Promise resolving to active minutes (≥ 0) or null
|
|
26743
|
+
*/
|
|
26744
|
+
getPositionActiveMinutes: (backtest: boolean, symbol: string, context: {
|
|
26745
|
+
strategyName: StrategyName;
|
|
26746
|
+
exchangeName: ExchangeName;
|
|
26747
|
+
frameName: FrameName;
|
|
26748
|
+
}) => Promise<number | null>;
|
|
26749
|
+
/**
|
|
26750
|
+
* Returns the number of minutes the scheduled signal has been waiting for activation.
|
|
26751
|
+
*
|
|
26752
|
+
* Delegates to ClientStrategy.getPositionWaitingMinutes().
|
|
26753
|
+
* Returns null if no scheduled signal exists.
|
|
26754
|
+
*
|
|
26755
|
+
* @param backtest - Whether running in backtest mode
|
|
26756
|
+
* @param symbol - Trading pair symbol
|
|
26757
|
+
* @param context - Execution context with strategyName, exchangeName, frameName
|
|
26758
|
+
* @returns Promise resolving to waiting minutes (≥ 0) or null
|
|
26759
|
+
*/
|
|
26760
|
+
getPositionWaitingMinutes: (backtest: boolean, symbol: string, context: {
|
|
26761
|
+
strategyName: StrategyName;
|
|
26762
|
+
exchangeName: ExchangeName;
|
|
26763
|
+
frameName: FrameName;
|
|
26764
|
+
}) => Promise<number | null>;
|
|
26507
26765
|
/**
|
|
26508
26766
|
* Returns the best price reached in the profit direction during this position's life.
|
|
26509
26767
|
*
|
|
@@ -28807,6 +29065,32 @@ declare class StrategyCoreService implements TStrategy {
|
|
|
28807
29065
|
exchangeName: ExchangeName;
|
|
28808
29066
|
frameName: FrameName;
|
|
28809
29067
|
}) => Promise<number | null>;
|
|
29068
|
+
/**
|
|
29069
|
+
* Returns the number of minutes the position has been active since it opened.
|
|
29070
|
+
*
|
|
29071
|
+
* @param backtest - Whether running in backtest mode
|
|
29072
|
+
* @param symbol - Trading pair symbol
|
|
29073
|
+
* @param context - Execution context with strategyName, exchangeName, frameName
|
|
29074
|
+
* @returns Promise resolving to active minutes (≥ 0) or null
|
|
29075
|
+
*/
|
|
29076
|
+
getPositionActiveMinutes: (backtest: boolean, symbol: string, context: {
|
|
29077
|
+
strategyName: StrategyName;
|
|
29078
|
+
exchangeName: ExchangeName;
|
|
29079
|
+
frameName: FrameName;
|
|
29080
|
+
}) => Promise<number | null>;
|
|
29081
|
+
/**
|
|
29082
|
+
* Returns the number of minutes the scheduled signal has been waiting for activation.
|
|
29083
|
+
*
|
|
29084
|
+
* @param backtest - Whether running in backtest mode
|
|
29085
|
+
* @param symbol - Trading pair symbol
|
|
29086
|
+
* @param context - Execution context with strategyName, exchangeName, frameName
|
|
29087
|
+
* @returns Promise resolving to waiting minutes (≥ 0) or null
|
|
29088
|
+
*/
|
|
29089
|
+
getPositionWaitingMinutes: (backtest: boolean, symbol: string, context: {
|
|
29090
|
+
strategyName: StrategyName;
|
|
29091
|
+
exchangeName: ExchangeName;
|
|
29092
|
+
frameName: FrameName;
|
|
29093
|
+
}) => Promise<number | null>;
|
|
28810
29094
|
/**
|
|
28811
29095
|
* Returns the best price reached in the profit direction during this position's life.
|
|
28812
29096
|
*
|
|
@@ -31926,4 +32210,4 @@ declare const getTotalClosed: (signal: Signal) => {
|
|
|
31926
32210
|
remainingCostBasis: number;
|
|
31927
32211
|
};
|
|
31928
32212
|
|
|
31929
|
-
export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, type AverageBuyCommit, type AverageBuyCommitNotification, Backtest, type BacktestStatisticsModel, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, type BreakevenEvent, type BreakevenStatisticsModel, Broker, type BrokerAverageBuyPayload, BrokerBase, type BrokerBreakevenPayload, type BrokerPartialLossPayload, type BrokerPartialProfitPayload, type BrokerSignalClosePayload, type BrokerSignalOpenPayload, type BrokerTrailingStopPayload, type BrokerTrailingTakePayload, Cache, type CancelScheduledCommit, type CancelScheduledCommitNotification, type CandleData, type CandleInterval, type ClosePendingCommit, type ClosePendingCommitNotification, type ColumnConfig, type ColumnModel, Constant, type CriticalErrorNotification, 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 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 IScheduledSignalCancelRow, type IScheduledSignalRow, 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 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, Interval, type IntervalData, Live, type LiveStatisticsModel, Log, type LogData, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MarkdownWriter, MaxDrawdown, type MaxDrawdownContract, type MaxDrawdownEvent, type MaxDrawdownStatisticsModel, type MeasureData, Memory, type MemoryData, type MessageModel, type MessageRole, type MessageToolCall, MethodContextService, type MetricStats, Notification, NotificationBacktest, type NotificationData, 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, PersistIntervalAdapter, PersistLogAdapter, PersistMeasureAdapter, PersistMemoryAdapter, PersistNotificationAdapter, PersistPartialAdapter, PersistRecentAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistSignalAdapter, PersistStorageAdapter, 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, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, Session, type SignalCancelledNotification, type SignalCloseContract, type SignalClosedNotification, type SignalData, type SignalInfoContract, type SignalInfoNotification, type SignalInterval, type SignalOpenContract, type SignalOpenedNotification, type SignalScheduledNotification, type SignalSyncCloseNotification, type SignalSyncContract, type SignalSyncOpenNotification, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyEvent, type StrategyStatisticsModel, Sync, type SyncEvent, type SyncStatisticsModel, type TBrokerCtor, type TDumpInstanceCtor, type TLogCtor, type TMarkdownBase, type TMemoryInstanceCtor, type TNotificationUtilsCtor, type TPersistBase, type TPersistBaseCtor, type TRecentUtilsCtor, 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, alignToInterval, checkCandles, commitActivateScheduled, commitAverageBuy, commitBreakeven, commitCancelScheduled, commitClosePending, commitPartialLoss, commitPartialLossCost, commitPartialProfit, commitPartialProfitCost, commitSignalNotify, commitTrailingStop, commitTrailingStopCost, commitTrailingTake, commitTrailingTakeCost, dumpAgentAnswer, dumpError, dumpJson, dumpRecord, dumpTable, dumpText, emitters, formatPrice, formatQuantity, get, getActionSchema, getAggregatedTrades, getAveragePrice, getBacktestTimeframe, getBreakeven, getCandles, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getEffectivePriceOpen, getExchangeSchema, getFrameSchema, getLatestSignal, getMaxDrawdownDistancePnlCost, getMaxDrawdownDistancePnlPercentage, getMode, getNextCandles, getOrderBook, getPendingSignal, 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, getRawCandles, getRiskSchema, getScheduledSignal, getSizingSchema, getStrategySchema, getSymbol, getTimestamp, getTotalClosed, getTotalCostClosed, getTotalPercentClosed, getWalkerSchema, hasNoPendingSignal, hasNoScheduledSignal, hasTradeContext, investedCostToPercent, backtest as lib, listExchangeSchema, listFrameSchema, listMemory, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenBacktestProgress, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenHighestProfit, listenHighestProfitOnce, listenMaxDrawdown, listenMaxDrawdownOnce, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, 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, shutdown, slPercentShiftToPrice, slPriceToPercentShift, stopStrategy, toProfitLossDto, tpPercentShiftToPrice, tpPriceToPercentShift, validate, validateCommonSignal, validatePendingSignal, validateScheduledSignal, validateSignal, waitForCandle, warmCandles, writeMemory };
|
|
32213
|
+
export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, type AverageBuyCommit, type AverageBuyCommitNotification, Backtest, type BacktestStatisticsModel, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, type BreakevenEvent, type BreakevenStatisticsModel, Broker, type BrokerAverageBuyPayload, BrokerBase, type BrokerBreakevenPayload, type BrokerPartialLossPayload, type BrokerPartialProfitPayload, type BrokerSignalClosePayload, type BrokerSignalOpenPayload, type BrokerTrailingStopPayload, type BrokerTrailingTakePayload, Cache, type CancelScheduledCommit, type CancelScheduledCommitNotification, type CandleData, type CandleInterval, type ClosePendingCommit, type ClosePendingCommitNotification, type ColumnConfig, type ColumnModel, Constant, type CriticalErrorNotification, 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 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 IScheduledSignalCancelRow, type IScheduledSignalRow, 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 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, Interval, type IntervalData, Live, type LiveStatisticsModel, Log, type LogData, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MarkdownWriter, MaxDrawdown, type MaxDrawdownContract, type MaxDrawdownEvent, type MaxDrawdownStatisticsModel, type MeasureData, Memory, type MemoryData, type MessageModel, type MessageRole, type MessageToolCall, MethodContextService, type MetricStats, Notification, NotificationBacktest, type NotificationData, 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, PersistIntervalAdapter, PersistLogAdapter, PersistMeasureAdapter, PersistMemoryAdapter, PersistNotificationAdapter, PersistPartialAdapter, PersistRecentAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistSignalAdapter, PersistStorageAdapter, 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, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, Session, type SignalCancelledNotification, type SignalCloseContract, type SignalClosedNotification, type SignalData, type SignalInfoContract, type SignalInfoNotification, type SignalInterval, type SignalOpenContract, type SignalOpenedNotification, type SignalScheduledNotification, type SignalSyncCloseNotification, type SignalSyncContract, type SignalSyncOpenNotification, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyEvent, type StrategyStatisticsModel, Sync, type SyncEvent, type SyncStatisticsModel, type TBrokerCtor, type TDumpInstanceCtor, type TLogCtor, type TMarkdownBase, type TMemoryInstanceCtor, type TNotificationUtilsCtor, type TPersistBase, type TPersistBaseCtor, type TRecentUtilsCtor, 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, alignToInterval, checkCandles, commitActivateScheduled, commitAverageBuy, commitBreakeven, commitCancelScheduled, commitClosePending, commitPartialLoss, commitPartialLossCost, commitPartialProfit, commitPartialProfitCost, commitSignalNotify, commitTrailingStop, commitTrailingStopCost, commitTrailingTake, commitTrailingTakeCost, dumpAgentAnswer, dumpError, dumpJson, dumpRecord, dumpTable, dumpText, emitters, formatPrice, formatQuantity, get, getActionSchema, getAggregatedTrades, getAveragePrice, getBacktestTimeframe, getBreakeven, getCandles, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getEffectivePriceOpen, getExchangeSchema, getFrameSchema, getLatestSignal, getMaxDrawdownDistancePnlCost, getMaxDrawdownDistancePnlPercentage, 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, getRawCandles, getRiskSchema, getScheduledSignal, getSizingSchema, getStrategySchema, getSymbol, getTimestamp, getTotalClosed, getTotalCostClosed, getTotalPercentClosed, getWalkerSchema, hasNoPendingSignal, hasNoScheduledSignal, hasTradeContext, investedCostToPercent, backtest as lib, listExchangeSchema, listFrameSchema, listMemory, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenBacktestProgress, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenHighestProfit, listenHighestProfitOnce, listenMaxDrawdown, listenMaxDrawdownOnce, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, 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, shutdown, slPercentShiftToPrice, slPriceToPercentShift, stopStrategy, toProfitLossDto, tpPercentShiftToPrice, tpPriceToPercentShift, validate, validateCommonSignal, validatePendingSignal, validateScheduledSignal, validateSignal, waitForCandle, warmCandles, writeMemory };
|