Interface RiskRejectionNotification

Risk rejection notification. Emitted when a signal is rejected due to risk management rules.

interface RiskRejectionNotification {
    activePositionCount: number;
    backtest: boolean;
    createdAt: number;
    currentPrice: number;
    exchangeName: string;
    id: string;
    minuteEstimatedTime: number;
    position: "long" | "short";
    priceOpen: number;
    priceStopLoss: number;
    priceTakeProfit: number;
    rejectionId: string;
    rejectionNote: string;
    signalId: string;
    signalNote?: string;
    strategyName: string;
    symbol: string;
    timestamp: number;
    type: "risk.rejection";
}

Properties

activePositionCount: number

Number of currently active positions at rejection time

backtest: boolean

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

createdAt: number

Unix timestamp in milliseconds when the notification was created

currentPrice: number

Current market price when rejection occurred

exchangeName: string

Exchange name where signal was rejected

id: string

Unique notification identifier

minuteEstimatedTime: number

Expected duration in minutes before time_expired

position: "long" | "short"

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

priceOpen: number

Entry price for the position (may be undefined if not provided)

priceStopLoss: number

Stop loss exit price

priceTakeProfit: number

Take profit target price

rejectionId: string

Optional unique rejection identifier for tracking

rejectionNote: string

Human-readable reason for rejection

signalId: string

Unique signal identifier from pending signal (may be undefined if not provided)

signalNote?: string

Optional human-readable description of signal reason

strategyName: string

Strategy name that attempted to create signal

symbol: string

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

timestamp: number

Unix timestamp in milliseconds when signal was rejected

type: "risk.rejection"

Discriminator for type-safe union