earningsCalendar

suspend fun earningsCalendar(symbol: String, limit: Int = 12, offset: Int = 0): EarningsCalendar(source)

Fetches earnings calendar data for a given symbol from the Yahoo Finance Earnings Calendar.

Note: This method uses HTML scraping to collect data. If Yahoo Finance changes their web page structure, parsing may fail.

Return

EarningsCalendar containing earnings event data

Parameters

symbol

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

limit

The number of records to retrieve (default: 12, max: 100)

offset

Pagination offset for retrieving additional results (default: 0)

Throws

If the API call fails or returns an error response

If HTML parsing fails or success rate is below 50%