Gets runtime information about the current execution environment.
This includes details such as the current symbol, exchange, timeframe, strategy, and whether it's a backtest or live run.
Promise resolving to an object containing runtime information
Error if method context or execution context is not active
const runtimeInfo = await getRuntimeInfo();console.log(runtimeInfo);// {// symbol: "BTCUSDT",// context: {,// exchangeName: "Binance",// frameName: "1m",// strategyName: "MyStrategy",// },// backtest: false// } Copy
const runtimeInfo = await getRuntimeInfo();console.log(runtimeInfo);// {// symbol: "BTCUSDT",// context: {,// exchangeName: "Binance",// frameName: "1m",// strategyName: "MyStrategy",// },// backtest: false// }
Gets runtime information about the current execution environment.
This includes details such as the current symbol, exchange, timeframe, strategy, and whether it's a backtest or live run.