declare function getAveragePrice(symbol: string): Promise<number>;
Calculates VWAP (Volume Weighted Average Price) for a symbol.
Uses the last 5 1-minute candles to calculate:
If volume is zero, returns simple average of close prices.
| Parameter | Description |
|---|---|
symbol |
Trading pair symbol (e.g., "BTCUSDT") |