quote

suspend fun quote(symbol: String): QuoteData(source)

Retrieves real-time quote data for a single symbol.

This method provides current market data including price, volume, market cap, bid/ask spreads, and other real-time trading information.

Return

QuoteData containing real-time market information

Parameters

symbol

The ticker symbol (e.g., "AAPL", "GOOGL", "MSFT")

Throws

if the symbol is invalid or the request fails

Samples


suspend fun quote(symbols: List<String>): List<QuoteData>(source)

Retrieves real-time quote data for multiple symbols in a single request.

This is more efficient than making multiple individual quote requests when you need data for several symbols.

Return

List of QuoteData containing real-time market information for each symbol

Parameters

symbols

List of ticker symbols (e.g., listOf("AAPL", "GOOGL", "MSFT"))

Throws

if any symbol is invalid or the request fails

Samples