true when called during a backtest run — adapter should skip exchange calls
Strategy/exchange/frame routing context
Market price at the moment of cancellation
Position direction
Pending entry price the scheduled signal had been waiting for
Stop-loss price that had been configured for the scheduled signal
Take-profit price that had been configured for the scheduled signal
Optionalreason?: StrategyCancelReasonWhy the scheduled signal was cancelled: "timeout" / "price_reject" / "user"
Unique signal identifier (UUID v4) of the cancelled scheduled signal
Trading pair symbol, e.g. "BTCUSDT"
const payload: BrokerScheduleCancelledPayload = {
symbol: "BTCUSDT",
position: "long",
currentPrice: 47500,
priceOpen: 50000,
priceTakeProfit: 55000,
priceStopLoss: 48000,
reason: "price_reject",
context: { strategyName: "my-strategy", exchangeName: "binance", frameName: "1h" },
backtest: false,
};
Payload for the scheduled-signal-cancelled broker event.
Emitted automatically via scheduleEventSubject (action "cancelled") when a scheduled signal is removed before it ever activated. Forwarded to the registered IBroker adapter via
onSignalScheduleCancelled. Thereasondistinguishes timeout / price reject / user cancel.