Interface ISignalIntervalDto

Signal dto for IntervalUtils.fn which allows returning multiple signals in one getSignal call. This will pause the next signal untill interval elapses

interface ISignalIntervalDto {
    cost?: number;
    id: string;
    minuteEstimatedTime?: number;
    note?: string;
    position: "long" | "short";
    priceOpen?: number;
    priceStopLoss: number;
    priceTakeProfit: number;
}

Hierarchy (View Summary)

Properties

cost?: number

Cost of this entry in USD. Default: GLOBAL_CONFIG.CC_POSITION_ENTRY_COST

id: string

Unique signal identifier (UUID v4 auto-generated)

minuteEstimatedTime?: number

Expected duration in minutes before time_expired. Use Infinity for no timeout — position stays open until TP/SL or explicit closePending(). Default: GLOBAL_CONFIG.CC_MAX_SIGNAL_LIFETIME_MINUTES

note?: string

Human-readable description of signal reason

position: "long" | "short"

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

priceOpen?: number

Entry price for the position

priceStopLoss: number

Stop loss exit price (must be < priceOpen for long, > priceOpen for short)

priceTakeProfit: number

Take profit target price (must be > priceOpen for long, < priceOpen for short)