declare function getTotalCostClosed(symbol: string): Promise<number>;
Returns the cost basis in dollars of the position currently held (not closed). Correctly accounts for DCA entries between partial closes.
Automatically detects backtest/live mode from execution context.
| Parameter | Description |
|---|---|
symbol |
Trading pair symbol |