Interface CancelScheduledCommitNotification

Cancel scheduled commit notification. Emitted when a scheduled signal is cancelled before activation.

interface CancelScheduledCommitNotification {
    backtest: boolean;
    cancelId?: string;
    createdAt: number;
    exchangeName: string;
    id: string;
    originalPriceOpen: number;
    pnl: IStrategyPnL;
    pnlCost: number;
    pnlEntries: number;
    pnlPercentage: number;
    pnlPriceClose: number;
    pnlPriceOpen: number;
    signalId: string;
    strategyName: string;
    symbol: string;
    timestamp: number;
    totalEntries: number;
    totalPartials: number;
    type: "cancel_scheduled.commit";
}

Properties

backtest: boolean

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

cancelId?: string

Optional identifier for the cancellation reason (user-provided)

createdAt: number

Unix timestamp in milliseconds when the notification was created

exchangeName: string

Exchange name where signal was executed

id: string

Unique notification identifier

originalPriceOpen: number

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

PNL at the moment of cancellation (from data.pnl)

pnlCost: number

Absolute profit/loss in USD

pnlEntries: number

Total invested capital in USD

pnlPercentage: number

Profit/loss as percentage (e.g., 1.5 for +1.5%, -2.3 for -2.3%)

pnlPriceClose: number

Exit price from PNL calculation (adjusted with slippage and fees)

pnlPriceOpen: number

Entry price from PNL calculation (effective price adjusted with slippage and fees)

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 cancellation was committed

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: "cancel_scheduled.commit"

Discriminator for type-safe union