Returns the list of DCA entry prices and costs for the current pending signal.
Each element represents a single position entry — the initial open or a subsequent DCA entry added via commitAverageBuy.
Returns null if no pending signal exists. Returns a single-element array if no DCA entries were made.
Each entry contains:
price
cost
Trading pair symbol
Promise resolving to array of entry records or null
import { getPositionEntries } from "backtest-kit";const entries = await getPositionEntries("BTCUSDT");// No DCA: [{ price: 43000, cost: 100 }]// One DCA: [{ price: 43000, cost: 100 }, { price: 42000, cost: 100 }] Copy
import { getPositionEntries } from "backtest-kit";const entries = await getPositionEntries("BTCUSDT");// No DCA: [{ price: 43000, cost: 100 }]// One DCA: [{ price: 43000, cost: 100 }, { price: 42000, cost: 100 }]
Returns the list of DCA entry prices and costs for the current pending signal.
Each element represents a single position entry — the initial open or a subsequent DCA entry added via commitAverageBuy.
Returns null if no pending signal exists. Returns a single-element array if no DCA entries were made.
Each entry contains:
price— execution price of this entrycost— dollar cost allocated to this entry (e.g. 100 for $100)