Returns the close price of the last completed candle for the given interval.
Trading pair symbol (e.g., "BTCUSDT")
Candle interval ("1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h")
Promise resolving to close price of the last candle
const close = await getClosePrice("BTCUSDT", "1h");console.log(close); // 50125.43 Copy
const close = await getClosePrice("BTCUSDT", "1h");console.log(close); // 50125.43
Returns the close price of the last completed candle for the given interval.