Returns the number of minutes the position has been active since it opened.
Returns null if no pending signal exists.
Trading pair symbol
Promise resolving to active minutes (≥ 0) or null
import { getPositionActiveMinutes } from "backtest-kit";const minutes = await getPositionActiveMinutes("BTCUSDT");// e.g. 120 (position has been open for 2 hours) Copy
import { getPositionActiveMinutes } from "backtest-kit";const minutes = await getPositionActiveMinutes("BTCUSDT");// e.g. 120 (position has been open for 2 hours)
Returns the number of minutes the position has been active since it opened.
Returns null if no pending signal exists.