Interface ScheduledEvent

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

interface ScheduledEvent {
    action: "scheduled" | "opened" | "cancelled";
    cancelId?: string;
    cancelReason?: "timeout" | "user" | "price_reject";
    closeTimestamp?: number;
    currentPrice: number;
    duration?: number;
    note?: string;
    originalPriceStopLoss?: number;
    originalPriceTakeProfit?: number;
    position: string;
    priceOpen: number;
    priceStopLoss: number;
    priceTakeProfit: number;
    signalId: string;
    symbol: string;
    timestamp: number;
    totalExecuted?: number;
}

Properties

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

Event action type

cancelId?: string

Cancellation ID (only for user-initiated cancellations)

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

Cancellation reason (only for cancelled events)

closeTimestamp?: number

Close timestamp (only for cancelled)

currentPrice: number

Current market price

duration?: number

Duration in minutes (only for cancelled/opened)

note?: string

Signal note

originalPriceStopLoss?: number

Original stop loss price before modifications

originalPriceTakeProfit?: number

Original take profit price before modifications

position: string

Position type

priceOpen: number

Scheduled entry price

priceStopLoss: number

Stop loss price

priceTakeProfit: number

Take profit price

signalId: string

Signal ID

symbol: string

Trading pair symbol

timestamp: number

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

totalExecuted?: number

Total executed percentage from partial closes