Interface PauseContract

Contract for strategy pause state changes emitted by the framework. Emitted when setPaused toggles the pause flag of a strategy: while paused the strategy opens nothing new (params.getSignal is not called, a queued createSignal DTO is held); an existing pending/scheduled signal keeps being monitored and closes normally. Consumers can use this event to generate user-facing notifications (e.g. Telegram) about the pause/resume of automatic trading. The backtest flag allows consumers to differentiate between live and backtest updates for appropriate handling.

interface PauseContract {
    backtest: boolean;
    exchangeName: string;
    frameName: string;
    paused: boolean;
    strategyName: string;
    symbol: string;
    timestamp: number;
}

Properties

backtest: boolean

Indicates if the update is from a backtest or live trading (true for backtest, false for live)

exchangeName: string

Exchange name for context

frameName: string

Frame name for context (e.g. "1m", "5m")

paused: boolean

New pause state: true — generation suspended, false — resumed

strategyName: string

Strategy name for context

symbol: string

Trading symbol (e.g. "BTC/USDT")

timestamp: number

Timestamp of the pause state change (milliseconds since epoch)