backtest-kit 13.4.0 → 13.6.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/README.md +10 -0
- package/build/index.cjs +403 -1
- package/build/index.mjs +403 -1
- package/package.json +1 -1
- package/types.d.ts +299 -2
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1506,6 +1506,75 @@ interface SignalCloseContract extends SignalSyncBase {
|
|
|
1506
1506
|
*/
|
|
1507
1507
|
type SignalSyncContract = SignalOpenContract | SignalCloseContract;
|
|
1508
1508
|
|
|
1509
|
+
/**
|
|
1510
|
+
* Signal pending-ping sync event.
|
|
1511
|
+
*
|
|
1512
|
+
* Emitted on every live tick while a pending signal (open position) is being monitored,
|
|
1513
|
+
* BEFORE the framework evaluates TP/SL/time completion. It asks the external order
|
|
1514
|
+
* management system whether the corresponding order is STILL pending (open) on the exchange.
|
|
1515
|
+
*
|
|
1516
|
+
* Listener contract (mirrors syncSubject semantics):
|
|
1517
|
+
* - Return true (or do nothing) — the order is still open on the exchange, keep monitoring.
|
|
1518
|
+
* - Return false OR throw — the order is no longer open on the exchange (filled, cancelled,
|
|
1519
|
+
* liquidated externally). The framework closes the pending signal with closeReason "closed".
|
|
1520
|
+
*
|
|
1521
|
+
* Backtest never emits this event — there is no live exchange to query.
|
|
1522
|
+
*
|
|
1523
|
+
* Consumers:
|
|
1524
|
+
* - Broker adapter via `onOrderPing` (syncPendingSubject subscription)
|
|
1525
|
+
* - Registered actions via `orderPing` / `onOrderPing`
|
|
1526
|
+
*/
|
|
1527
|
+
interface SignalPingContract {
|
|
1528
|
+
/** Discriminator for pending-ping action */
|
|
1529
|
+
action: "signal-ping";
|
|
1530
|
+
/** Trading pair symbol (e.g., "BTCUSDT") */
|
|
1531
|
+
symbol: string;
|
|
1532
|
+
/** Strategy name that generated this signal */
|
|
1533
|
+
strategyName: StrategyName;
|
|
1534
|
+
/** Exchange name where signal was executed */
|
|
1535
|
+
exchangeName: ExchangeName;
|
|
1536
|
+
/** Timeframe name (empty string in live mode) */
|
|
1537
|
+
frameName: FrameName;
|
|
1538
|
+
/** Whether this event is from backtest mode (true) or live mode (false) — always false in practice */
|
|
1539
|
+
backtest: boolean;
|
|
1540
|
+
/** Unique signal identifier (UUID v4) */
|
|
1541
|
+
signalId: string;
|
|
1542
|
+
/** Timestamp from execution context (tick's when) */
|
|
1543
|
+
timestamp: number;
|
|
1544
|
+
/** Complete public signal row at the moment of this event */
|
|
1545
|
+
signal: IPublicSignalRow;
|
|
1546
|
+
/** Market price at the moment of the ping (VWAP) */
|
|
1547
|
+
currentPrice: number;
|
|
1548
|
+
/** Unrealized PNL of the open position at the moment of the ping */
|
|
1549
|
+
pnl: IStrategyPnL;
|
|
1550
|
+
/** Peak profit achieved during the life of this position up to this event */
|
|
1551
|
+
peakProfit: IStrategyPnL;
|
|
1552
|
+
/** Maximum drawdown experienced during the life of this position up to this event */
|
|
1553
|
+
maxDrawdown: IStrategyPnL;
|
|
1554
|
+
/** Trade direction: "long" (buy) or "short" (sell) */
|
|
1555
|
+
position: "long" | "short";
|
|
1556
|
+
/** Effective entry price (may differ from priceOpen after DCA averaging) */
|
|
1557
|
+
priceOpen: number;
|
|
1558
|
+
/** Effective take profit price (may differ from original after trailing) */
|
|
1559
|
+
priceTakeProfit: number;
|
|
1560
|
+
/** Effective stop loss price (may differ from original after trailing) */
|
|
1561
|
+
priceStopLoss: number;
|
|
1562
|
+
/** Original take profit price before any trailing adjustments */
|
|
1563
|
+
originalPriceTakeProfit: number;
|
|
1564
|
+
/** Original stop loss price before any trailing adjustments */
|
|
1565
|
+
originalPriceStopLoss: number;
|
|
1566
|
+
/** Original entry price before any DCA averaging (initial priceOpen) */
|
|
1567
|
+
originalPriceOpen: number;
|
|
1568
|
+
/** Signal creation timestamp in milliseconds */
|
|
1569
|
+
scheduledAt: number;
|
|
1570
|
+
/** Position activation timestamp in milliseconds */
|
|
1571
|
+
pendingAt: number;
|
|
1572
|
+
/** Total number of DCA entries (_entry.length). 1 = no averaging done. */
|
|
1573
|
+
totalEntries: number;
|
|
1574
|
+
/** Total number of partial closes executed (_partial.length). 0 = none. */
|
|
1575
|
+
totalPartials: number;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1509
1578
|
/**
|
|
1510
1579
|
* Constructor type for action handlers with strategy context.
|
|
1511
1580
|
*
|
|
@@ -1819,6 +1888,30 @@ interface IActionCallbacks {
|
|
|
1819
1888
|
* @param backtest - True for backtest mode, false for live trading
|
|
1820
1889
|
*/
|
|
1821
1890
|
onSignalSync(event: SignalSyncContract, actionName: ActionName, strategyName: StrategyName, frameName: FrameName, backtest: boolean): void | Promise<void>;
|
|
1891
|
+
/**
|
|
1892
|
+
* Called on every live tick while a pending signal is monitored, BEFORE TP/SL/time evaluation,
|
|
1893
|
+
* to confirm the order is still pending (open) on the exchange.
|
|
1894
|
+
*
|
|
1895
|
+
* Query the exchange by `event.signalId` and THROW ONLY when the order is NOT FOUND by that id
|
|
1896
|
+
* (filled, cancelled, or liquidated externally) — the framework then closes the position with
|
|
1897
|
+
* closeReason "closed".
|
|
1898
|
+
*
|
|
1899
|
+
* CRITICAL: swallow transient/network errors (timeout, 5xx, rate limit, disconnect) — return
|
|
1900
|
+
* normally instead of throwing, otherwise a connectivity blip would wrongly close an open
|
|
1901
|
+
* position. Throw exclusively on a confirmed "order not found by id" result.
|
|
1902
|
+
*
|
|
1903
|
+
* NOTE: Like onSignalSync, exceptions from this method are NOT swallowed. They propagate up to
|
|
1904
|
+
* CREATE_SYNC_PENDING_FN which catches them and returns false.
|
|
1905
|
+
*
|
|
1906
|
+
* @deprecated This callback is not recommended for use. Exchange integration should be implemented
|
|
1907
|
+
* in Broker.useBrokerAdapter (the infrastructure domain layer) via onOrderPing instead.
|
|
1908
|
+
* @param event - Pending-ping event with action "signal-ping"
|
|
1909
|
+
* @param actionName - Action identifier
|
|
1910
|
+
* @param strategyName - Strategy identifier
|
|
1911
|
+
* @param frameName - Timeframe identifier
|
|
1912
|
+
* @param backtest - True for backtest mode, false for live trading
|
|
1913
|
+
*/
|
|
1914
|
+
onOrderPing(event: SignalPingContract, actionName: ActionName, strategyName: StrategyName, frameName: FrameName, backtest: boolean): void | Promise<void>;
|
|
1822
1915
|
}
|
|
1823
1916
|
/**
|
|
1824
1917
|
* Action schema registered via addActionSchema().
|
|
@@ -2091,6 +2184,26 @@ interface IAction {
|
|
|
2091
2184
|
* @param event - Sync event with action "signal-open" or "signal-close"
|
|
2092
2185
|
*/
|
|
2093
2186
|
signalSync(event: SignalSyncContract): void | Promise<void>;
|
|
2187
|
+
/**
|
|
2188
|
+
* Called on every live tick while a pending signal is monitored, BEFORE TP/SL/time evaluation,
|
|
2189
|
+
* to confirm the order is still pending (open) on the exchange.
|
|
2190
|
+
*
|
|
2191
|
+
* Query the exchange by `event.signalId` and THROW ONLY when the order is NOT FOUND by that id
|
|
2192
|
+
* (filled, cancelled, or liquidated externally) — the framework then closes the position with
|
|
2193
|
+
* closeReason "closed".
|
|
2194
|
+
*
|
|
2195
|
+
* CRITICAL: swallow transient/network errors (timeout, 5xx, rate limit, disconnect) — return
|
|
2196
|
+
* normally instead of throwing, otherwise a connectivity blip would wrongly close an open
|
|
2197
|
+
* position. Throw exclusively on a confirmed "order not found by id" result.
|
|
2198
|
+
*
|
|
2199
|
+
* NOTE: Exceptions are NOT swallowed here — they propagate to CREATE_SYNC_PENDING_FN.
|
|
2200
|
+
*
|
|
2201
|
+
* @deprecated This method is not recommended for use. Exchange integration should be implemented
|
|
2202
|
+
* in Broker.useBrokerAdapter (the infrastructure domain layer) via onOrderPing instead.
|
|
2203
|
+
* If Action::orderPing throws the framework will close the position with closeReason "closed"!
|
|
2204
|
+
* @param event - Pending-ping event with action "signal-ping"
|
|
2205
|
+
*/
|
|
2206
|
+
orderPing(event: SignalPingContract): void | Promise<void>;
|
|
2094
2207
|
/**
|
|
2095
2208
|
* Cleans up resources and subscriptions when action handler is no longer needed.
|
|
2096
2209
|
*
|
|
@@ -28591,6 +28704,8 @@ declare class ActionBase implements IPublicAction {
|
|
|
28591
28704
|
type BrokerSignalOpenPayload = {
|
|
28592
28705
|
/** Trading pair symbol, e.g. "BTCUSDT" */
|
|
28593
28706
|
symbol: string;
|
|
28707
|
+
/** Unique signal identifier (UUID v4) the order belongs to */
|
|
28708
|
+
signalId: string;
|
|
28594
28709
|
/** Dollar cost of the position entry (CC_POSITION_ENTRY_COST) */
|
|
28595
28710
|
cost: number;
|
|
28596
28711
|
/** Position direction */
|
|
@@ -28642,6 +28757,8 @@ type BrokerSignalOpenPayload = {
|
|
|
28642
28757
|
type BrokerSignalClosePayload = {
|
|
28643
28758
|
/** Trading pair symbol, e.g. "BTCUSDT" */
|
|
28644
28759
|
symbol: string;
|
|
28760
|
+
/** Unique signal identifier (UUID v4) the order belongs to */
|
|
28761
|
+
signalId: string;
|
|
28645
28762
|
/** Total dollar cost basis of the position at close */
|
|
28646
28763
|
cost: number;
|
|
28647
28764
|
/** Position direction */
|
|
@@ -28673,6 +28790,70 @@ type BrokerSignalClosePayload = {
|
|
|
28673
28790
|
/** true when called during a backtest run — adapter should skip exchange calls */
|
|
28674
28791
|
backtest: boolean;
|
|
28675
28792
|
};
|
|
28793
|
+
/**
|
|
28794
|
+
* Payload for the pending-order synchronization broker event.
|
|
28795
|
+
*
|
|
28796
|
+
* Emitted automatically via syncPendingSubject on every live tick while a pending signal is
|
|
28797
|
+
* monitored, BEFORE the framework evaluates TP/SL/time. Forwarded to the registered IBroker
|
|
28798
|
+
* adapter via `onOrderPing`.
|
|
28799
|
+
*
|
|
28800
|
+
* The adapter should query the exchange by `signalId` and THROW ONLY when the order is
|
|
28801
|
+
* definitively NOT FOUND by that id (filled, cancelled, or liquidated externally). A throw
|
|
28802
|
+
* propagates to CREATE_SYNC_PENDING_FN, which makes the framework close the pending signal with
|
|
28803
|
+
* closeReason "closed". Returning normally keeps the position under normal TP/SL monitoring.
|
|
28804
|
+
*
|
|
28805
|
+
* CRITICAL: transient/network errors (timeout, 5xx, rate limit, disconnect) must be SWALLOWED —
|
|
28806
|
+
* return normally instead of throwing. A thrown network error would wrongly close an open
|
|
28807
|
+
* position. Only a confirmed "order not found by id" response is a valid reason to throw.
|
|
28808
|
+
*
|
|
28809
|
+
* @example
|
|
28810
|
+
* ```typescript
|
|
28811
|
+
* const payload: BrokerSignalPendingPayload = {
|
|
28812
|
+
* symbol: "BTCUSDT",
|
|
28813
|
+
* position: "long",
|
|
28814
|
+
* currentPrice: 50500,
|
|
28815
|
+
* priceOpen: 50000,
|
|
28816
|
+
* priceTakeProfit: 55000,
|
|
28817
|
+
* priceStopLoss: 48000,
|
|
28818
|
+
* context: { strategyName: "my-strategy", exchangeName: "binance", frameName: "1h" },
|
|
28819
|
+
* backtest: false,
|
|
28820
|
+
* };
|
|
28821
|
+
* ```
|
|
28822
|
+
*/
|
|
28823
|
+
type BrokerSignalPendingPayload = {
|
|
28824
|
+
/** Trading pair symbol, e.g. "BTCUSDT" */
|
|
28825
|
+
symbol: string;
|
|
28826
|
+
/** Unique signal identifier (UUID v4) the order belongs to */
|
|
28827
|
+
signalId: string;
|
|
28828
|
+
/** Position direction */
|
|
28829
|
+
position: "long" | "short";
|
|
28830
|
+
/** Market price at the moment of the ping */
|
|
28831
|
+
currentPrice: number;
|
|
28832
|
+
/** Effective entry price (may differ from priceOpen after DCA averaging) */
|
|
28833
|
+
priceOpen: number;
|
|
28834
|
+
/** Effective take-profit price at the moment of the ping */
|
|
28835
|
+
priceTakeProfit: number;
|
|
28836
|
+
/** Effective stop-loss price at the moment of the ping */
|
|
28837
|
+
priceStopLoss: number;
|
|
28838
|
+
/** Unrealized PnL of the open position at the moment of the ping */
|
|
28839
|
+
pnl: IStrategyPnL;
|
|
28840
|
+
/** Peak profit achieved during the life of this position up to this event */
|
|
28841
|
+
peakProfit: IStrategyPnL;
|
|
28842
|
+
/** Maximum drawdown experienced during the life of this position up to this event */
|
|
28843
|
+
maxDrawdown: IStrategyPnL;
|
|
28844
|
+
/** Total number of DCA entries (including initial open) */
|
|
28845
|
+
totalEntries: number;
|
|
28846
|
+
/** Total number of partial closes executed */
|
|
28847
|
+
totalPartials: number;
|
|
28848
|
+
/** Strategy/exchange/frame routing context */
|
|
28849
|
+
context: {
|
|
28850
|
+
strategyName: StrategyName;
|
|
28851
|
+
exchangeName: ExchangeName;
|
|
28852
|
+
frameName?: FrameName;
|
|
28853
|
+
};
|
|
28854
|
+
/** true when called during a backtest run — adapter should skip exchange calls */
|
|
28855
|
+
backtest: boolean;
|
|
28856
|
+
};
|
|
28676
28857
|
/**
|
|
28677
28858
|
* Payload for a partial-profit close broker event.
|
|
28678
28859
|
*
|
|
@@ -28694,6 +28875,8 @@ type BrokerSignalClosePayload = {
|
|
|
28694
28875
|
type BrokerPartialProfitPayload = {
|
|
28695
28876
|
/** Trading pair symbol, e.g. "BTCUSDT" */
|
|
28696
28877
|
symbol: string;
|
|
28878
|
+
/** Unique signal identifier (UUID v4) the order belongs to */
|
|
28879
|
+
signalId: string;
|
|
28697
28880
|
/** Percentage of the position to close (0–100) */
|
|
28698
28881
|
percentToClose: number;
|
|
28699
28882
|
/** Dollar value of the portion being closed */
|
|
@@ -28736,6 +28919,8 @@ type BrokerPartialProfitPayload = {
|
|
|
28736
28919
|
type BrokerPartialLossPayload = {
|
|
28737
28920
|
/** Trading pair symbol, e.g. "BTCUSDT" */
|
|
28738
28921
|
symbol: string;
|
|
28922
|
+
/** Unique signal identifier (UUID v4) the order belongs to */
|
|
28923
|
+
signalId: string;
|
|
28739
28924
|
/** Percentage of the position to close (0–100) */
|
|
28740
28925
|
percentToClose: number;
|
|
28741
28926
|
/** Dollar value of the portion being closed */
|
|
@@ -28780,6 +28965,8 @@ type BrokerPartialLossPayload = {
|
|
|
28780
28965
|
type BrokerTrailingStopPayload = {
|
|
28781
28966
|
/** Trading pair symbol, e.g. "BTCUSDT" */
|
|
28782
28967
|
symbol: string;
|
|
28968
|
+
/** Unique signal identifier (UUID v4) the order belongs to */
|
|
28969
|
+
signalId: string;
|
|
28783
28970
|
/** Percentage shift applied to the ORIGINAL SL distance (-100 to 100) */
|
|
28784
28971
|
percentShift: number;
|
|
28785
28972
|
/** Current market price used for intrusion validation */
|
|
@@ -28822,6 +29009,8 @@ type BrokerTrailingStopPayload = {
|
|
|
28822
29009
|
type BrokerTrailingTakePayload = {
|
|
28823
29010
|
/** Trading pair symbol, e.g. "BTCUSDT" */
|
|
28824
29011
|
symbol: string;
|
|
29012
|
+
/** Unique signal identifier (UUID v4) the order belongs to */
|
|
29013
|
+
signalId: string;
|
|
28825
29014
|
/** Percentage shift applied to the ORIGINAL TP distance (-100 to 100) */
|
|
28826
29015
|
percentShift: number;
|
|
28827
29016
|
/** Current market price used for intrusion validation */
|
|
@@ -28865,6 +29054,8 @@ type BrokerTrailingTakePayload = {
|
|
|
28865
29054
|
type BrokerBreakevenPayload = {
|
|
28866
29055
|
/** Trading pair symbol, e.g. "BTCUSDT" */
|
|
28867
29056
|
symbol: string;
|
|
29057
|
+
/** Unique signal identifier (UUID v4) the order belongs to */
|
|
29058
|
+
signalId: string;
|
|
28868
29059
|
/** Current market price at the moment breakeven is triggered */
|
|
28869
29060
|
currentPrice: number;
|
|
28870
29061
|
/** New stop-loss price = effectivePriceOpen (the position's effective entry price) */
|
|
@@ -28903,6 +29094,8 @@ type BrokerBreakevenPayload = {
|
|
|
28903
29094
|
type BrokerAverageBuyPayload = {
|
|
28904
29095
|
/** Trading pair symbol, e.g. "BTCUSDT" */
|
|
28905
29096
|
symbol: string;
|
|
29097
|
+
/** Unique signal identifier (UUID v4) the order belongs to */
|
|
29098
|
+
signalId: string;
|
|
28906
29099
|
/** Market price at which the DCA entry is placed */
|
|
28907
29100
|
currentPrice: number;
|
|
28908
29101
|
/** Dollar amount of the new DCA entry (default: CC_POSITION_ENTRY_COST) */
|
|
@@ -28954,6 +29147,17 @@ interface IBroker {
|
|
|
28954
29147
|
onSignalCloseCommit(payload: BrokerSignalClosePayload): Promise<void>;
|
|
28955
29148
|
/** Called when a new signal is opened (position entry confirmed). */
|
|
28956
29149
|
onSignalOpenCommit(payload: BrokerSignalOpenPayload): Promise<void>;
|
|
29150
|
+
/**
|
|
29151
|
+
* Called on every live tick while a pending signal is monitored, BEFORE TP/SL/time evaluation.
|
|
29152
|
+
* Query the exchange by `payload.signalId` and THROW ONLY when the order is NOT FOUND by that id
|
|
29153
|
+
* — the framework will then close the position with closeReason "closed". Return normally to keep
|
|
29154
|
+
* monitoring.
|
|
29155
|
+
*
|
|
29156
|
+
* CRITICAL: swallow transient/network errors (timeout, 5xx, rate limit, disconnect) — return
|
|
29157
|
+
* normally instead of throwing, otherwise a connectivity blip would wrongly close an open
|
|
29158
|
+
* position. Throw exclusively on a confirmed "order not found by id" result.
|
|
29159
|
+
*/
|
|
29160
|
+
onOrderPing(payload: BrokerSignalPendingPayload): Promise<void>;
|
|
28957
29161
|
/** Called when a partial profit close is committed. */
|
|
28958
29162
|
onPartialProfitCommit(payload: BrokerPartialProfitPayload): Promise<void>;
|
|
28959
29163
|
/** Called when a partial loss close is committed. */
|
|
@@ -29075,6 +29279,17 @@ declare class BrokerAdapter {
|
|
|
29075
29279
|
* ```
|
|
29076
29280
|
*/
|
|
29077
29281
|
commitSignalClose: (payload: BrokerSignalClosePayload) => Promise<void>;
|
|
29282
|
+
/**
|
|
29283
|
+
* Forwards a pending-order ping to the registered broker adapter.
|
|
29284
|
+
*
|
|
29285
|
+
* Called automatically via syncPendingSubject when `enable()` is active, on every live tick
|
|
29286
|
+
* while a pending signal is monitored. Skipped silently in backtest mode or when no adapter is
|
|
29287
|
+
* registered. Exceptions are NOT swallowed: a throw from the adapter propagates up to
|
|
29288
|
+
* syncPendingSubject.next() → CREATE_SYNC_PENDING_FN, which closes the position with "closed".
|
|
29289
|
+
*
|
|
29290
|
+
* @param payload - Pending ping details: symbol, position, prices, pnl, context, backtest flag
|
|
29291
|
+
*/
|
|
29292
|
+
commitSignalPending: (payload: BrokerSignalPendingPayload) => Promise<void>;
|
|
29078
29293
|
/**
|
|
29079
29294
|
* Intercepts a partial-profit close before DI-core mutation.
|
|
29080
29295
|
*
|
|
@@ -29413,6 +29628,39 @@ declare class BrokerBase implements IBroker {
|
|
|
29413
29628
|
* ```
|
|
29414
29629
|
*/
|
|
29415
29630
|
onSignalOpenCommit(payload: BrokerSignalOpenPayload): Promise<void>;
|
|
29631
|
+
/**
|
|
29632
|
+
* Called on every live tick while a pending signal is monitored, BEFORE TP/SL/time evaluation.
|
|
29633
|
+
*
|
|
29634
|
+
* Override to query the exchange for the order by `payload.signalId` and THROW ONLY when it is
|
|
29635
|
+
* definitively NOT FOUND by that id (filled, cancelled, or liquidated externally) — the framework
|
|
29636
|
+
* then closes the position with closeReason "closed". The default implementation logs and returns
|
|
29637
|
+
* normally, which keeps the position under normal TP/SL monitoring.
|
|
29638
|
+
*
|
|
29639
|
+
* CRITICAL: swallow transient/network errors (timeout, 5xx, rate limit, disconnect) — return
|
|
29640
|
+
* normally instead of throwing. A thrown network error would wrongly close an open position; only
|
|
29641
|
+
* a confirmed "order not found by id" response is a valid reason to throw.
|
|
29642
|
+
*
|
|
29643
|
+
* @param payload - Pending ping details: symbol, signalId, position, prices, pnl, context, backtest
|
|
29644
|
+
*
|
|
29645
|
+
* @example
|
|
29646
|
+
* ```typescript
|
|
29647
|
+
* async onOrderPing(payload: BrokerSignalPendingPayload) {
|
|
29648
|
+
* super.onOrderPing(payload); // Keep parent logging
|
|
29649
|
+
* let order: Order | null;
|
|
29650
|
+
* try {
|
|
29651
|
+
* order = await this.exchange.getOrderById(payload.signalId);
|
|
29652
|
+
* } catch (networkError) {
|
|
29653
|
+
* // Transient/network error — swallow and keep the position open, retry next tick
|
|
29654
|
+
* return;
|
|
29655
|
+
* }
|
|
29656
|
+
* if (!order) {
|
|
29657
|
+
* // Confirmed not found by id — close the position
|
|
29658
|
+
* throw new Error(`Order ${payload.signalId} not found on the exchange`);
|
|
29659
|
+
* }
|
|
29660
|
+
* }
|
|
29661
|
+
* ```
|
|
29662
|
+
*/
|
|
29663
|
+
onOrderPing(payload: BrokerSignalPendingPayload): Promise<void>;
|
|
29416
29664
|
/**
|
|
29417
29665
|
* Called when a position is fully closed (SL/TP hit or manual close).
|
|
29418
29666
|
*
|
|
@@ -29626,6 +29874,15 @@ interface WalkerStopContract {
|
|
|
29626
29874
|
* Consumers should implement retry logic in their listeners to handle transient synchronization failures.
|
|
29627
29875
|
*/
|
|
29628
29876
|
declare const syncSubject: Subject<SignalSyncContract>;
|
|
29877
|
+
/**
|
|
29878
|
+
* Pending-order synchronization emitter.
|
|
29879
|
+
* Emitted on every live tick while a pending signal is monitored, BEFORE TP/SL/time evaluation.
|
|
29880
|
+
* Asks the exchange whether the order is STILL pending (open).
|
|
29881
|
+
*
|
|
29882
|
+
* If a listener returns false OR throws, the order is treated as no longer open on the exchange
|
|
29883
|
+
* and the framework closes the pending signal with closeReason "closed". Never emitted in backtest.
|
|
29884
|
+
*/
|
|
29885
|
+
declare const syncPendingSubject: Subject<SignalPingContract>;
|
|
29629
29886
|
/**
|
|
29630
29887
|
* Global signal emitter for all trading events (live + backtest).
|
|
29631
29888
|
* Emits all signal events regardless of execution mode.
|
|
@@ -29831,13 +30088,14 @@ declare const emitters_signalEmitter: typeof signalEmitter;
|
|
|
29831
30088
|
declare const emitters_signalLiveEmitter: typeof signalLiveEmitter;
|
|
29832
30089
|
declare const emitters_signalNotifySubject: typeof signalNotifySubject;
|
|
29833
30090
|
declare const emitters_strategyCommitSubject: typeof strategyCommitSubject;
|
|
30091
|
+
declare const emitters_syncPendingSubject: typeof syncPendingSubject;
|
|
29834
30092
|
declare const emitters_syncSubject: typeof syncSubject;
|
|
29835
30093
|
declare const emitters_validationSubject: typeof validationSubject;
|
|
29836
30094
|
declare const emitters_walkerCompleteSubject: typeof walkerCompleteSubject;
|
|
29837
30095
|
declare const emitters_walkerEmitter: typeof walkerEmitter;
|
|
29838
30096
|
declare const emitters_walkerStopSubject: typeof walkerStopSubject;
|
|
29839
30097
|
declare namespace emitters {
|
|
29840
|
-
export { emitters_activePingSubject as activePingSubject, emitters_afterEndSubject as afterEndSubject, emitters_backtestScheduleOpenSubject as backtestScheduleOpenSubject, emitters_beforeStartSubject as beforeStartSubject, emitters_breakevenSubject as breakevenSubject, emitters_doneBacktestSubject as doneBacktestSubject, emitters_doneLiveSubject as doneLiveSubject, emitters_doneWalkerSubject as doneWalkerSubject, emitters_entrySubject as entrySubject, emitters_errorEmitter as errorEmitter, emitters_exitEmitter as exitEmitter, emitters_highestProfitSubject as highestProfitSubject, emitters_idlePingSubject as idlePingSubject, emitters_maxDrawdownSubject as maxDrawdownSubject, emitters_partialLossSubject as partialLossSubject, emitters_partialProfitSubject as partialProfitSubject, emitters_performanceEmitter as performanceEmitter, emitters_progressBacktestEmitter as progressBacktestEmitter, emitters_progressWalkerEmitter as progressWalkerEmitter, emitters_riskSubject as riskSubject, emitters_schedulePingSubject as schedulePingSubject, emitters_shutdownEmitter as shutdownEmitter, emitters_signalBacktestEmitter as signalBacktestEmitter, emitters_signalEmitter as signalEmitter, emitters_signalLiveEmitter as signalLiveEmitter, emitters_signalNotifySubject as signalNotifySubject, emitters_strategyCommitSubject as strategyCommitSubject, emitters_syncSubject as syncSubject, emitters_validationSubject as validationSubject, emitters_walkerCompleteSubject as walkerCompleteSubject, emitters_walkerEmitter as walkerEmitter, emitters_walkerStopSubject as walkerStopSubject };
|
|
30098
|
+
export { emitters_activePingSubject as activePingSubject, emitters_afterEndSubject as afterEndSubject, emitters_backtestScheduleOpenSubject as backtestScheduleOpenSubject, emitters_beforeStartSubject as beforeStartSubject, emitters_breakevenSubject as breakevenSubject, emitters_doneBacktestSubject as doneBacktestSubject, emitters_doneLiveSubject as doneLiveSubject, emitters_doneWalkerSubject as doneWalkerSubject, emitters_entrySubject as entrySubject, emitters_errorEmitter as errorEmitter, emitters_exitEmitter as exitEmitter, emitters_highestProfitSubject as highestProfitSubject, emitters_idlePingSubject as idlePingSubject, emitters_maxDrawdownSubject as maxDrawdownSubject, emitters_partialLossSubject as partialLossSubject, emitters_partialProfitSubject as partialProfitSubject, emitters_performanceEmitter as performanceEmitter, emitters_progressBacktestEmitter as progressBacktestEmitter, emitters_progressWalkerEmitter as progressWalkerEmitter, emitters_riskSubject as riskSubject, emitters_schedulePingSubject as schedulePingSubject, emitters_shutdownEmitter as shutdownEmitter, emitters_signalBacktestEmitter as signalBacktestEmitter, emitters_signalEmitter as signalEmitter, emitters_signalLiveEmitter as signalLiveEmitter, emitters_signalNotifySubject as signalNotifySubject, emitters_strategyCommitSubject as strategyCommitSubject, emitters_syncPendingSubject as syncPendingSubject, emitters_syncSubject as syncSubject, emitters_validationSubject as validationSubject, emitters_walkerCompleteSubject as walkerCompleteSubject, emitters_walkerEmitter as walkerEmitter, emitters_walkerStopSubject as walkerStopSubject };
|
|
29841
30099
|
}
|
|
29842
30100
|
|
|
29843
30101
|
/**
|
|
@@ -31032,6 +31290,19 @@ declare class ActionCoreService implements TAction$1 {
|
|
|
31032
31290
|
exchangeName: ExchangeName;
|
|
31033
31291
|
frameName: FrameName;
|
|
31034
31292
|
}) => Promise<void>;
|
|
31293
|
+
/**
|
|
31294
|
+
* Gates the pending-order ping across all registered actions.
|
|
31295
|
+
* NOT wrapped in trycatch — exceptions propagate to CREATE_SYNC_PENDING_FN.
|
|
31296
|
+
*
|
|
31297
|
+
* @param backtest - Whether running in backtest mode
|
|
31298
|
+
* @param event - Pending-ping event with action "signal-ping"
|
|
31299
|
+
* @param context - Strategy execution context
|
|
31300
|
+
*/
|
|
31301
|
+
orderPing: (backtest: boolean, event: SignalPingContract, context: {
|
|
31302
|
+
strategyName: StrategyName;
|
|
31303
|
+
exchangeName: ExchangeName;
|
|
31304
|
+
frameName: FrameName;
|
|
31305
|
+
}) => Promise<void>;
|
|
31035
31306
|
/**
|
|
31036
31307
|
* Disposes all ClientAction instances for the strategy.
|
|
31037
31308
|
*
|
|
@@ -33094,6 +33365,13 @@ declare class ActionProxy implements IPublicAction {
|
|
|
33094
33365
|
* @param event - Sync event with action "signal-open" or "signal-close"
|
|
33095
33366
|
*/
|
|
33096
33367
|
signalSync(event: SignalSyncContract): Promise<void>;
|
|
33368
|
+
/**
|
|
33369
|
+
* Gate for the pending-order ping (order still open on exchange?).
|
|
33370
|
+
* NOT wrapped in trycatch — exceptions propagate to CREATE_SYNC_PENDING_FN.
|
|
33371
|
+
*
|
|
33372
|
+
* @param event - Pending-ping event with action "signal-ping"
|
|
33373
|
+
*/
|
|
33374
|
+
orderPing(event: SignalPingContract): Promise<void>;
|
|
33097
33375
|
/**
|
|
33098
33376
|
* Cleans up resources with error capture.
|
|
33099
33377
|
*
|
|
@@ -33245,6 +33523,11 @@ declare class ClientAction implements IAction {
|
|
|
33245
33523
|
* NOT wrapped in trycatch — exceptions propagate to CREATE_SYNC_FN.
|
|
33246
33524
|
*/
|
|
33247
33525
|
signalSync(event: SignalSyncContract): Promise<void>;
|
|
33526
|
+
/**
|
|
33527
|
+
* Gate for the pending-order ping (order still open on exchange?).
|
|
33528
|
+
* NOT wrapped in trycatch — exceptions propagate to CREATE_SYNC_PENDING_FN.
|
|
33529
|
+
*/
|
|
33530
|
+
orderPing(event: SignalPingContract): Promise<void>;
|
|
33248
33531
|
/**
|
|
33249
33532
|
* Cleans up resources and subscriptions when action handler is no longer needed.
|
|
33250
33533
|
* Uses singleshot pattern to ensure cleanup happens exactly once.
|
|
@@ -33464,6 +33747,20 @@ declare class ActionConnectionService implements TAction {
|
|
|
33464
33747
|
exchangeName: ExchangeName;
|
|
33465
33748
|
frameName: FrameName;
|
|
33466
33749
|
}) => Promise<void>;
|
|
33750
|
+
/**
|
|
33751
|
+
* Routes orderPing event to appropriate ClientAction instance.
|
|
33752
|
+
* NOT wrapped in trycatch — exceptions propagate to CREATE_SYNC_PENDING_FN.
|
|
33753
|
+
*
|
|
33754
|
+
* @param event - Pending-ping event with action "signal-ping"
|
|
33755
|
+
* @param backtest - Whether running in backtest mode
|
|
33756
|
+
* @param context - Execution context
|
|
33757
|
+
*/
|
|
33758
|
+
orderPing: (event: SignalPingContract, backtest: boolean, context: {
|
|
33759
|
+
actionName: ActionName;
|
|
33760
|
+
strategyName: StrategyName;
|
|
33761
|
+
exchangeName: ExchangeName;
|
|
33762
|
+
frameName: FrameName;
|
|
33763
|
+
}) => Promise<void>;
|
|
33467
33764
|
/**
|
|
33468
33765
|
* Disposes the ClientAction instance for the given action name.
|
|
33469
33766
|
*
|
|
@@ -37803,4 +38100,4 @@ declare const getTotalClosed: (signal: Signal) => {
|
|
|
37803
38100
|
*/
|
|
37804
38101
|
declare const getPriceScale: (value: number) => number;
|
|
37805
38102
|
|
|
37806
|
-
export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, type AfterEndContract, type AverageBuyCommit, type AverageBuyCommitNotification, Backtest, type BacktestStatisticsModel, type BeforeStartContract, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, type BreakevenEvent, type BreakevenStatisticsModel, Broker, type 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, type CommitPayload, Constant, type CriticalErrorNotification, Cron, type CronCallback, type CronEntry, type CronHandle, type DoneContract, Dump, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, HighestProfit, type HighestProfitContract, type HighestProfitEvent, type HighestProfitStatisticsModel, type IActionSchema, type IActivateScheduledCommitRow, type IAggregatedTradeData, type IBidData, type IBreakevenCommitRow, type IBroker, type ICandleData, type ICommitRow, type IDumpContext, type IDumpInstance, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type ILog, type ILogEntry, type ILogger, type IMarkdownDumpOptions, type IMemoryInstance, type INotificationUtils, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPersistBreakevenInstance, type IPersistCandleInstance, type IPersistIntervalInstance, type IPersistLogInstance, type IPersistMeasureInstance, type IPersistMemoryInstance, type IPersistNotificationInstance, type IPersistPartialInstance, type IPersistRecentInstance, type IPersistRiskInstance, type IPersistScheduleInstance, type IPersistSessionInstance, type IPersistSignalInstance, type IPersistStateInstance, type IPersistStorageInstance, type IPersistStrategyInstance, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicAction, type IPublicCandleData, type IPublicSignalRow, type IRecentUtils, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IRuntimeInfo, type IRuntimeRange, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISessionInstance, type ISignalDto, type ISignalIntervalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingParams, type ISizingParamsATR, type ISizingParamsFixedPercentage, type ISizingParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStateInstance, type IStorageSignalRow, type IStorageUtils, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IStrategyTickResultWaiting, type ITrailingStopCommitRow, type ITrailingTakeCommitRow, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type IdlePingContract, type InfoErrorNotification, Interval, type IntervalData, Live, type LiveStatisticsModel, Log, type LogData, Lookup, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MarkdownWriter, MaxDrawdown, type MaxDrawdownContract, type MaxDrawdownEvent, type MaxDrawdownStatisticsModel, type MeasureData, Memory, MemoryBacktest, MemoryBacktestAdapter, type MemoryData, MemoryLive, MemoryLiveAdapter, type MessageModel, type MessageRole, type MessageToolCall, MethodContextService, type MetricStats, Notification, NotificationBacktest, type NotificationData, NotificationLive, type NotificationModel, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossAvailableNotification, type PartialLossCommit, type PartialLossCommitNotification, type PartialLossContract, type PartialProfitAvailableNotification, type PartialProfitCommit, type PartialProfitCommitNotification, type PartialProfitContract, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistBreakevenInstance, PersistCandleAdapter, PersistCandleInstance, PersistIntervalAdapter, PersistIntervalInstance, PersistLogAdapter, PersistLogInstance, PersistMeasureAdapter, PersistMeasureInstance, PersistMemoryAdapter, PersistMemoryInstance, PersistNotificationAdapter, PersistNotificationInstance, PersistPartialAdapter, PersistPartialInstance, PersistRecentAdapter, PersistRecentInstance, PersistRiskAdapter, PersistRiskInstance, PersistScheduleAdapter, PersistScheduleInstance, PersistSessionAdapter, PersistSessionInstance, PersistSignalAdapter, PersistSignalInstance, PersistStateAdapter, PersistStateInstance, PersistStorageAdapter, PersistStorageInstance, PersistStrategyAdapter, PersistStrategyInstance, Position, PositionSize, type ProgressBacktestContract, type ProgressWalkerContract, Recent, RecentBacktest, type RecentData, RecentLive, Reflect, Report, ReportBase, type ReportName, ReportWriter, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, type RuntimeData, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, Session, SessionBacktest, type SessionData, SessionLive, 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, State, StateBacktest, StateBacktestAdapter, type StateData, StateLive, StateLiveAdapter, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyData, type StrategyEvent, type StrategyStatisticsModel, type StrategyStatus, Sync, type SyncEvent, type SyncStatisticsModel, System, type TBrokerCtor, type TDumpInstanceCtor, type TLogCtor, type TMarkdownBase, type TMemoryInstanceCtor, type TNotificationUtilsCtor, type TPersistBase, type TPersistBaseCtor, type TPersistBreakevenInstanceCtor, type TPersistCandleInstanceCtor, type TPersistIntervalInstanceCtor, type TPersistLogInstanceCtor, type TPersistMeasureInstanceCtor, type TPersistMemoryInstanceCtor, type TPersistNotificationInstanceCtor, type TPersistPartialInstanceCtor, type TPersistRecentInstanceCtor, type TPersistRiskInstanceCtor, type TPersistScheduleInstanceCtor, type TPersistSessionInstanceCtor, type TPersistSignalInstanceCtor, type TPersistStateInstanceCtor, type TPersistStorageInstanceCtor, type TPersistStrategyInstanceCtor, type TRecentUtilsCtor, type TReportBase, type TSessionInstanceCtor, type TStateInstanceCtor, type TStorageUtilsCtor, type TickEvent, type TrailingStopCommit, type TrailingStopCommitNotification, type TrailingTakeCommit, type TrailingTakeCommitNotification, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, alignToInterval, beginContext, beginTime, cacheCandles, checkCandles, commitActivateScheduled, commitAverageBuy, commitBreakeven, commitCancelScheduled, commitClosePending, commitCreateSignal, commitPartialLoss, commitPartialLossCost, commitPartialProfit, commitPartialProfitCost, commitSignalNotify, commitTrailingStop, commitTrailingStopCost, commitTrailingTake, commitTrailingTakeCost, createSignalState, dumpAgentAnswer, dumpError, dumpJson, dumpRecord, dumpTable, dumpText, emitters, formatPrice, formatQuantity, get, getActionSchema, getAggregatedTrades, getAveragePrice, getBacktestTimeframe, getBreakeven, getCandles, getClosePrice, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getEffectivePriceOpen, getExchangeSchema, getFrameSchema, getLatestSignal, getMaxDrawdownDistancePnlCost, getMaxDrawdownDistancePnlPercentage, getMinutesSinceLatestSignalCreated, getMode, getNextCandles, getOrderBook, getPendingSignal, getPositionActiveMinutes, getPositionCountdownMinutes, getPositionDrawdownMinutes, getPositionEffectivePrice, getPositionEntries, getPositionEntryOverlap, getPositionEstimateMinutes, getPositionHighestMaxDrawdownPnlCost, getPositionHighestMaxDrawdownPnlPercentage, getPositionHighestPnlCost, getPositionHighestPnlPercentage, getPositionHighestProfitBreakeven, getPositionHighestProfitDistancePnlCost, getPositionHighestProfitDistancePnlPercentage, getPositionHighestProfitMinutes, getPositionHighestProfitPrice, getPositionHighestProfitTimestamp, getPositionInvestedCost, getPositionInvestedCount, getPositionLevels, getPositionMaxDrawdownMinutes, getPositionMaxDrawdownPnlCost, getPositionMaxDrawdownPnlPercentage, getPositionMaxDrawdownPrice, getPositionMaxDrawdownTimestamp, getPositionPartialOverlap, getPositionPartials, getPositionPnlCost, getPositionPnlPercent, getPositionWaitingMinutes, getPriceScale, getRawCandles, getRiskSchema, getRuntimeInfo, getScheduledSignal, getSessionData, getSignalState, getSizingSchema, getStrategySchema, getStrategyStatus, getSymbol, getTimestamp, getTotalClosed, getTotalCostClosed, getTotalPercentClosed, getWalkerSchema, hasNoPendingSignal, hasNoScheduledSignal, hasTradeContext, intervalStepMs, investedCostToPercent, backtest as lib, listExchangeSchema, listFrameSchema, listMemory, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenAfterEnd, listenAfterEndOnce, listenBacktestProgress, listenBeforeStart, listenBeforeStartOnce, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenHighestProfit, listenHighestProfitOnce, listenIdlePing, listenIdlePingOnce, 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, setSessionData, setSignalState, shutdown, slPercentShiftToPrice, slPriceToPercentShift, stopStrategy, toPlainString, toProfitLossDto, tpPercentShiftToPrice, tpPriceToPercentShift, validate, validateCandles, validateCommonSignal, validatePendingSignal, validateScheduledSignal, validateSignal, waitForCandle, waitForReady, warmCandles, writeMemory };
|
|
38103
|
+
export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, type AfterEndContract, type AverageBuyCommit, type AverageBuyCommitNotification, Backtest, type BacktestStatisticsModel, type BeforeStartContract, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, type BreakevenEvent, type BreakevenStatisticsModel, Broker, type BrokerAverageBuyPayload, BrokerBase, type BrokerBreakevenPayload, type BrokerPartialLossPayload, type BrokerPartialProfitPayload, type BrokerSignalClosePayload, type BrokerSignalOpenPayload, type BrokerSignalPendingPayload, type BrokerTrailingStopPayload, type BrokerTrailingTakePayload, Cache, type CancelScheduledCommit, type CancelScheduledCommitNotification, type CandleData, type CandleInterval, type ClosePendingCommit, type ClosePendingCommitNotification, type ColumnConfig, type ColumnModel, type CommitPayload, Constant, type CriticalErrorNotification, Cron, type CronCallback, type CronEntry, type CronHandle, type DoneContract, Dump, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, HighestProfit, type HighestProfitContract, type HighestProfitEvent, type HighestProfitStatisticsModel, type IActionSchema, type IActivateScheduledCommitRow, type IAggregatedTradeData, type IBidData, type IBreakevenCommitRow, type IBroker, type ICandleData, type ICommitRow, type IDumpContext, type IDumpInstance, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type ILog, type ILogEntry, type ILogger, type IMarkdownDumpOptions, type IMemoryInstance, type INotificationUtils, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPersistBreakevenInstance, type IPersistCandleInstance, type IPersistIntervalInstance, type IPersistLogInstance, type IPersistMeasureInstance, type IPersistMemoryInstance, type IPersistNotificationInstance, type IPersistPartialInstance, type IPersistRecentInstance, type IPersistRiskInstance, type IPersistScheduleInstance, type IPersistSessionInstance, type IPersistSignalInstance, type IPersistStateInstance, type IPersistStorageInstance, type IPersistStrategyInstance, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicAction, type IPublicCandleData, type IPublicSignalRow, type IRecentUtils, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IRuntimeInfo, type IRuntimeRange, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISessionInstance, type ISignalDto, type ISignalIntervalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingParams, type ISizingParamsATR, type ISizingParamsFixedPercentage, type ISizingParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStateInstance, type IStorageSignalRow, type IStorageUtils, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IStrategyTickResultWaiting, type ITrailingStopCommitRow, type ITrailingTakeCommitRow, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type IdlePingContract, type InfoErrorNotification, Interval, type IntervalData, Live, type LiveStatisticsModel, Log, type LogData, Lookup, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MarkdownWriter, MaxDrawdown, type MaxDrawdownContract, type MaxDrawdownEvent, type MaxDrawdownStatisticsModel, type MeasureData, Memory, MemoryBacktest, MemoryBacktestAdapter, type MemoryData, MemoryLive, MemoryLiveAdapter, type MessageModel, type MessageRole, type MessageToolCall, MethodContextService, type MetricStats, Notification, NotificationBacktest, type NotificationData, NotificationLive, type NotificationModel, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossAvailableNotification, type PartialLossCommit, type PartialLossCommitNotification, type PartialLossContract, type PartialProfitAvailableNotification, type PartialProfitCommit, type PartialProfitCommitNotification, type PartialProfitContract, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistBreakevenInstance, PersistCandleAdapter, PersistCandleInstance, PersistIntervalAdapter, PersistIntervalInstance, PersistLogAdapter, PersistLogInstance, PersistMeasureAdapter, PersistMeasureInstance, PersistMemoryAdapter, PersistMemoryInstance, PersistNotificationAdapter, PersistNotificationInstance, PersistPartialAdapter, PersistPartialInstance, PersistRecentAdapter, PersistRecentInstance, PersistRiskAdapter, PersistRiskInstance, PersistScheduleAdapter, PersistScheduleInstance, PersistSessionAdapter, PersistSessionInstance, PersistSignalAdapter, PersistSignalInstance, PersistStateAdapter, PersistStateInstance, PersistStorageAdapter, PersistStorageInstance, PersistStrategyAdapter, PersistStrategyInstance, Position, PositionSize, type ProgressBacktestContract, type ProgressWalkerContract, Recent, RecentBacktest, type RecentData, RecentLive, Reflect, Report, ReportBase, type ReportName, ReportWriter, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, type RuntimeData, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, Session, SessionBacktest, type SessionData, SessionLive, type SignalCancelledNotification, type SignalCloseContract, type SignalClosedNotification, type SignalData, type SignalInfoContract, type SignalInfoNotification, type SignalInterval, type SignalOpenContract, type SignalOpenedNotification, type SignalPingContract, type SignalScheduledNotification, type SignalSyncCloseNotification, type SignalSyncContract, type SignalSyncOpenNotification, State, StateBacktest, StateBacktestAdapter, type StateData, StateLive, StateLiveAdapter, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyData, type StrategyEvent, type StrategyStatisticsModel, type StrategyStatus, Sync, type SyncEvent, type SyncStatisticsModel, System, type TBrokerCtor, type TDumpInstanceCtor, type TLogCtor, type TMarkdownBase, type TMemoryInstanceCtor, type TNotificationUtilsCtor, type TPersistBase, type TPersistBaseCtor, type TPersistBreakevenInstanceCtor, type TPersistCandleInstanceCtor, type TPersistIntervalInstanceCtor, type TPersistLogInstanceCtor, type TPersistMeasureInstanceCtor, type TPersistMemoryInstanceCtor, type TPersistNotificationInstanceCtor, type TPersistPartialInstanceCtor, type TPersistRecentInstanceCtor, type TPersistRiskInstanceCtor, type TPersistScheduleInstanceCtor, type TPersistSessionInstanceCtor, type TPersistSignalInstanceCtor, type TPersistStateInstanceCtor, type TPersistStorageInstanceCtor, type TPersistStrategyInstanceCtor, type TRecentUtilsCtor, type TReportBase, type TSessionInstanceCtor, type TStateInstanceCtor, type TStorageUtilsCtor, type TickEvent, type TrailingStopCommit, type TrailingStopCommitNotification, type TrailingTakeCommit, type TrailingTakeCommitNotification, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, alignToInterval, beginContext, beginTime, cacheCandles, checkCandles, commitActivateScheduled, commitAverageBuy, commitBreakeven, commitCancelScheduled, commitClosePending, commitCreateSignal, commitPartialLoss, commitPartialLossCost, commitPartialProfit, commitPartialProfitCost, commitSignalNotify, commitTrailingStop, commitTrailingStopCost, commitTrailingTake, commitTrailingTakeCost, createSignalState, dumpAgentAnswer, dumpError, dumpJson, dumpRecord, dumpTable, dumpText, emitters, formatPrice, formatQuantity, get, getActionSchema, getAggregatedTrades, getAveragePrice, getBacktestTimeframe, getBreakeven, getCandles, getClosePrice, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getEffectivePriceOpen, getExchangeSchema, getFrameSchema, getLatestSignal, getMaxDrawdownDistancePnlCost, getMaxDrawdownDistancePnlPercentage, getMinutesSinceLatestSignalCreated, getMode, getNextCandles, getOrderBook, getPendingSignal, getPositionActiveMinutes, getPositionCountdownMinutes, getPositionDrawdownMinutes, getPositionEffectivePrice, getPositionEntries, getPositionEntryOverlap, getPositionEstimateMinutes, getPositionHighestMaxDrawdownPnlCost, getPositionHighestMaxDrawdownPnlPercentage, getPositionHighestPnlCost, getPositionHighestPnlPercentage, getPositionHighestProfitBreakeven, getPositionHighestProfitDistancePnlCost, getPositionHighestProfitDistancePnlPercentage, getPositionHighestProfitMinutes, getPositionHighestProfitPrice, getPositionHighestProfitTimestamp, getPositionInvestedCost, getPositionInvestedCount, getPositionLevels, getPositionMaxDrawdownMinutes, getPositionMaxDrawdownPnlCost, getPositionMaxDrawdownPnlPercentage, getPositionMaxDrawdownPrice, getPositionMaxDrawdownTimestamp, getPositionPartialOverlap, getPositionPartials, getPositionPnlCost, getPositionPnlPercent, getPositionWaitingMinutes, getPriceScale, getRawCandles, getRiskSchema, getRuntimeInfo, getScheduledSignal, getSessionData, getSignalState, getSizingSchema, getStrategySchema, getStrategyStatus, getSymbol, getTimestamp, getTotalClosed, getTotalCostClosed, getTotalPercentClosed, getWalkerSchema, hasNoPendingSignal, hasNoScheduledSignal, hasTradeContext, intervalStepMs, investedCostToPercent, backtest as lib, listExchangeSchema, listFrameSchema, listMemory, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenAfterEnd, listenAfterEndOnce, listenBacktestProgress, listenBeforeStart, listenBeforeStartOnce, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenHighestProfit, listenHighestProfitOnce, listenIdlePing, listenIdlePingOnce, 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, setSessionData, setSignalState, shutdown, slPercentShiftToPrice, slPriceToPercentShift, stopStrategy, toPlainString, toProfitLossDto, tpPercentShiftToPrice, tpPriceToPercentShift, validate, validateCandles, validateCommonSignal, validatePendingSignal, validateScheduledSignal, validateSignal, waitForCandle, waitForReady, warmCandles, writeMemory };
|