Interface SignalCancelledNotification

Signal cancelled notification. Emitted when a scheduled signal is cancelled before activation.

interface SignalCancelledNotification {
    backtest: boolean;
    cancelId: string;
    cancelReason: string;
    createdAt: number;
    duration: number;
    exchangeName: string;
    id: string;
    originalPriceOpen: number;
    originalPriceStopLoss: number;
    originalPriceTakeProfit: number;
    pendingAt: number;
    position: "long" | "short";
    priceOpen: number;
    priceStopLoss: number;
    priceTakeProfit: number;
    scheduledAt: number;
    signalId: string;
    strategyName: string;
    symbol: string;
    timestamp: number;
    totalEntries: number;
    totalPartials: number;
    type: "signal.cancelled";
}

Properties

backtest: boolean

Whether this notification is from backtest mode (true) or live mode (false)

cancelId: string

Optional cancellation identifier (provided when user calls cancel())

cancelReason: string

Why signal was cancelled (timeout | price_reject | user)

createdAt: number

Unix timestamp in milliseconds when the tick result was created (from candle timestamp in backtest or execution context when in live)

duration: number

Duration in minutes from scheduledAt to cancellation

exchangeName: string

Exchange name where signal was scheduled

id: string

Unique notification identifier

originalPriceOpen: number

Original entry price at signal creation (unchanged by DCA averaging)

originalPriceStopLoss: number

Original stop loss price before any trailing adjustments

originalPriceTakeProfit: number

Original take profit price before any trailing adjustments

pendingAt: number

Pending timestamp in milliseconds (when position became pending/active at priceOpen)

position: "long" | "short"

Trade direction: "long" (buy) or "short" (sell)

priceOpen: number

Entry price for the position

priceStopLoss: number

Stop loss exit price

priceTakeProfit: number

Take profit target price

scheduledAt: number

Signal creation timestamp in milliseconds (when signal was first created/scheduled)

signalId: string

Unique signal identifier (UUID v4)

strategyName: string

Strategy name that generated this signal

symbol: string

Trading pair symbol (e.g., "BTCUSDT")

timestamp: number

Unix timestamp in milliseconds when signal was cancelled (closeTimestamp)

totalEntries: number

Total number of DCA entries (_entry.length). 1 = no averaging.

totalPartials: number

Total number of partial closes executed (_partial.length). 0 = no partial closes done.

type: "signal.cancelled"

Discriminator for type-safe union