search

suspend fun search(query: String, quotesCount: Int = 8, newsCount: Int = 8, enableFuzzyQuery: Boolean = false): SearchResponse(source)

Searches for symbols, companies, and related news.

This method provides a unified search across quotes (stocks, ETFs, funds, etc.) and news articles related to the search query.

Return

SearchResponse containing matching quotes and news articles

Parameters

query

Search query string (e.g., "Apple", "AAPL", "iPhone")

quotesCount

Maximum number of quote results to return (default: 8)

newsCount

Maximum number of news results to return (default: 8)

enableFuzzyQuery

Enable fuzzy matching for the query (default: false)

Throws

if the request fails

Samples