commitAverageBuy

declare function commitAverageBuy(symbol: string, cost?: number): Promise<boolean>;

Adds a new DCA entry to the active pending signal.

Adds a new averaging entry at the current market price to the position's entry history. Updates effectivePriceOpen (mean of all entries) and emits an average-buy commit event.

Automatically detects backtest/live mode from execution context. Automatically fetches current price via getAveragePrice.

Parameter Description
symbol Trading pair symbol
cost