Returns the remaining time before the position expires, clamped to zero.
Computes elapsed minutes since pendingAt and subtracts from minuteEstimatedTime. Returns 0 once the estimate is exceeded (never negative).
pendingAt
minuteEstimatedTime
Returns null if no pending signal exists.
Trading pair symbol
Promise resolving to remaining minutes (≥ 0) or null
import { getPositionCountdownMinutes } from "backtest-kit";const remaining = await getPositionCountdownMinutes("BTCUSDT");// e.g. 45 (45 minutes left)// 0 when expired Copy
import { getPositionCountdownMinutes } from "backtest-kit";const remaining = await getPositionCountdownMinutes("BTCUSDT");// e.g. 45 (45 minutes left)// 0 when expired
Returns the remaining time before the position expires, clamped to zero.
Computes elapsed minutes since
pendingAtand subtracts fromminuteEstimatedTime. Returns 0 once the estimate is exceeded (never negative).Returns null if no pending signal exists.