Interface IRuntimeInfo<Data>

Interface for runtime information returned by the RuntimeMetaService. This includes the symbol being traded, the time range of the backtest, any additional info defined by the strategy, and contextual information about the exchange, strategy, and frame being used.

interface IRuntimeInfo<Data extends RuntimeData = RuntimeData> {
    backtest: boolean;
    context: { exchangeName: string; frameName: string; strategyName: string };
    currentPrice: number;
    info: Data;
    range: IRuntimeRange;
    symbol: string;
    when: Date;
}

Type Parameters

Properties

backtest: boolean

Whether the strategy is running in backtest mode

context: { exchangeName: string; frameName: string; strategyName: string }

Contextual information about the current execution environment

currentPrice: number

Current market price for the symbol at the time of execution

info: Data

Additional runtime information defined by the strategy, can be used for custom monitoring or reporting

Time range for the backtest, null if running in live mode

symbol: string

Trading pair symbol (e.g., "BTCUSDT")

when: Date

Timestamp of the current candle or tick