Interface ISignalDto

Signal data transfer object returned by getSignal. Will be validated and augmented with auto-generated id.

interface ISignalDto {
    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

Optional signal ID (auto-generated if not provided)

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)