Returns the list of DCA entry prices for the current pending signal.
The first element is always the original priceOpen (initial entry). Each subsequent element is a price added by commitAverageBuy().
Returns null if no pending signal exists. Returns a single-element array [priceOpen] if no DCA entries were made.
Trading pair symbol
Promise resolving to array of entry prices or null
import { getPositionLevels } from "backtest-kit";const levels = await getPositionLevels("BTCUSDT");// No DCA: [43000]// One DCA: [43000, 42000] Copy
import { getPositionLevels } from "backtest-kit";const levels = await getPositionLevels("BTCUSDT");// No DCA: [43000]// One DCA: [43000, 42000]
Returns the list of DCA entry prices for the current pending signal.
The first element is always the original priceOpen (initial entry). Each subsequent element is a price added by commitAverageBuy().
Returns null if no pending signal exists. Returns a single-element array [priceOpen] if no DCA entries were made.