ScheduledEvent

Unified scheduled signal event data for report generation. Contains all information about scheduled, opened and cancelled events.

timestamp: number

Event timestamp in milliseconds (scheduledAt for scheduled/cancelled events)

action: "opened" | "scheduled" | "cancelled"

Event action type

symbol: string

Trading pair symbol

signalId: string

Signal ID

position: string

Position type

note: string

Signal note

currentPrice: number

Current market price

priceOpen: number

Scheduled entry price

priceTakeProfit: number

Take profit price

priceStopLoss: number

Stop loss price

originalPriceTakeProfit: number

Original take profit price before modifications

originalPriceStopLoss: number

Original stop loss price before modifications

totalEntries: number

Total number of DCA entries (present when averageBuy was applied)

totalPartials: number

Total number of partial closes executed (_partial.length)

originalPriceOpen: number

Original entry price before DCA averaging (present when averageBuy was applied)

partialExecuted: number

Total executed percentage from partial closes

pnl: IStrategyPnL

Unrealized PNL at the moment of this event

closeTimestamp: number

Close timestamp (only for cancelled)

duration: number

Duration in minutes (only for cancelled/opened)

cancelReason: "timeout" | "price_reject" | "user"

Cancellation reason (only for cancelled events)

cancelId: string

Cancellation ID (only for user-initiated cancellations)

pendingAt: number

Timestamp when position became active (only for opened events)

scheduledAt: number

Timestamp when signal was created/scheduled (for all events)