Interface SyncEvent

Unified sync event data for markdown report generation. Contains all information about signal lifecycle sync events.

interface SyncEvent {
    action: SyncActionType;
    backtest: boolean;
    closeReason?: StrategyCloseReason;
    createdAt: string;
    currentPrice: number;
    exchangeName: string;
    frameName: string;
    originalPriceOpen: number;
    originalPriceStopLoss: number;
    originalPriceTakeProfit: number;
    pendingAt: number;
    pnl: IStrategyPnL;
    position: "long" | "short";
    priceOpen: number;
    priceStopLoss: number;
    priceTakeProfit: number;
    scheduledAt: number;
    signalId: string;
    strategyName: string;
    symbol: string;
    timestamp: number;
    totalEntries: number;
    totalPartials: number;
}

Properties

action: SyncActionType

Sync action type

backtest: boolean

Whether this event is from backtest mode

closeReason?: StrategyCloseReason

Why the signal was closed (signal-close only)

createdAt: string

ISO timestamp string when event was created

currentPrice: number

Market price at the moment of this event

exchangeName: string

Exchange name

frameName: string

Frame name (empty for live)

originalPriceOpen: number

Original entry price before any DCA averaging

originalPriceStopLoss: number

Original stop loss price before any trailing adjustments

originalPriceTakeProfit: number

Original take profit price before any trailing adjustments

pendingAt: number

Position activation timestamp in milliseconds

PNL at the moment of this event

position: "long" | "short"

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

priceOpen: number

Entry price at which the limit order was filled

priceStopLoss: number

Effective stop loss price

priceTakeProfit: number

Effective take profit price

scheduledAt: number

Signal creation timestamp in milliseconds

signalId: string

Signal unique identifier

strategyName: string

Strategy name

symbol: string

Trading pair symbol

timestamp: number

Event timestamp in milliseconds

totalEntries: number

Total number of DCA entries

totalPartials: number

Total number of partial closes executed