Interface OrderContinueContract

Post-verdict order-check CONTINUE event.

The pre-verdict OrderCheckContract (syncPendingSubject) is the ping REQUEST — it fires before the broker adapter answers. This event is its resolved counterpart for the NON-terminal outcome: the framework decided the order is still open on the exchange and monitoring CONTINUES. Emitted on every live tick while the signal survives the check, discriminated by type:

  • type: "active" — the order backing an open position (pending signal);
  • type: "schedule" — the resting entry order of a scheduled signal.

attempt tells which continue-path fired:

  • 0 — the check CONFIRMED the order (healthy; the failure streak was reset);
  • 0 — the check FAILED transiently and was TOLERATED (order assumed still open) — the value is the current consecutive-failure streak, bounded by CC_ORDER_CHECK_RETRY_ATTEMPTS before the terminal path fires instead (see OrderStopContract).

Live-only: backtest never runs order checks. Notification-only channel: listener exceptions are swallowed at the emission site (logged + errorEmitter) and never affect the already-made monitoring decision.

interface OrderContinueContract {
    attempt: number;
    backtest: boolean;
    currentPrice: number;
    exchangeName: string;
    frameName: string;
    maxDrawdown: IStrategyPnL;
    originalPriceOpen: number;
    originalPriceStopLoss: number;
    originalPriceTakeProfit: number;
    peakProfit: IStrategyPnL;
    pendingAt: number;
    pnl: IStrategyPnL;
    position: "long" | "short";
    priceOpen: number;
    priceStopLoss: number;
    priceTakeProfit: number;
    scheduledAt: number;
    signal: IPublicSignalRow;
    signalId: string;
    strategyName: string;
    symbol: string;
    timestamp: number;
    totalEntries: number;
    totalPartials: number;
    type: "active" | "schedule";
}

Properties

attempt: number

Consecutive-failure streak at the moment of this decision: 0 — the check confirmed the order (healthy), >0 — this many consecutive transient failures are currently tolerated (order assumed still open).

backtest: boolean

Always false: order checks are live-only (kept for cross-channel filter uniformity)

currentPrice: number

Market price at the moment of the check (VWAP)

exchangeName: string

Exchange name where signal was executed

frameName: string

Timeframe name (empty string in live mode)

maxDrawdown: IStrategyPnL

Maximum drawdown experienced during the life of this position up to this event

originalPriceOpen: number

Original entry price before any DCA averaging (initial priceOpen)

originalPriceStopLoss: number

Original stop loss price before any trailing adjustments

originalPriceTakeProfit: number

Original take profit price before any trailing adjustments

peakProfit: IStrategyPnL

Peak profit achieved during the life of this position up to this event

pendingAt: number

Position activation timestamp in milliseconds

Unrealized PNL of the position at the moment of this event

position: "long" | "short"

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

priceOpen: number

Effective entry price (may differ from priceOpen after DCA averaging)

priceStopLoss: number

Effective stop loss price (may differ from original after trailing)

priceTakeProfit: number

Effective take profit price (may differ from original after trailing)

scheduledAt: number

Signal creation timestamp in milliseconds

Complete public signal row at the moment of this event

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

Timestamp from execution context (tick's when)

totalEntries: number

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

totalPartials: number

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

type: "active" | "schedule"

Monitored state: "active" — open position order, "schedule" — resting entry order