quote

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

Fetches real-time market data for a single symbol from the Yahoo Finance Quote API.

Return

QuoteData containing real-time market data including price, volume, and market state

Parameters

symbol

The stock symbol to query (e.g., "AAPL", "GOOGL")

Throws

If the API call fails or returns an error response


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

Fetches real-time market data for multiple symbols from the Yahoo Finance Quote API.

Return

List of QuoteData containing real-time market data for each symbol. Symbols that fail to retrieve will be omitted.

Parameters

symbols

List of stock symbols to query (e.g., listOf("AAPL", "GOOGL", "MSFT"))

Throws

If the API call fails or returns an error response