Skip to content

calendar

The calendar.* commands return company-level calendar data and earnings-event lists. Use this namespace when a workflow needs upcoming or historical event dates before doing filings, estimates, or price-context work.

All examples use --output json so results are stable to parse in terminals, scripts, and automation workflows.

Fetch company earnings/dividend calendar fields.

finance calendar.company fetches company earnings/dividend calendar fields. It returns ok, data, error, and warnings in JSON output. The result payload includes symbol, calendar, source.

Use this command when you need a compact company calendar object with upcoming earnings, dividend dates, and provider consensus ranges.

Terminal window
finance calendar.company SYMBOL [--output json]
ArgumentRequiredDefaultAccepted valuesDescription
symbolYesNoneStringTicker symbol to query, such as AAPL or NVDA.
Terminal window
finance calendar.company AAPL --output json

This output was generated with finance calendar.company AAPL --output json.

{
"ok": true,
"data": {
"symbol": "AAPL",
"calendar": {
"Dividend Date": "2026-05-13",
"Ex-Dividend Date": "2026-05-10",
"Earnings Date": [
"2026-07-30"
],
"Earnings High": 1.99,
"Earnings Low": 1.83,
"Earnings Average": 1.89077,
"Revenue High": 112000000000,
"Revenue Low": 107501000000,
"Revenue Average": 108790845560
},
"source": "yfinance"
},
"error": null,
"warnings": []
}
FieldTypeDescription
okbooleanWhether the command completed successfully.
dataobject or nullCommand-specific result payload. It is null when ok is false.
errorstring or nullHuman-readable error message when ok is false; otherwise null.
warningsarrayNon-fatal warnings returned by the command.
data.calendarobjectCompany calendar object returned by the provider.
data.sourcestringProvider or source identifier for the returned data.
data.symbolstringTicker symbol used for the calendar request.
data.calendar.Dividend DatestringYahoo calendar dividend date field.
data.calendar.Earnings AveragenumberYahoo consensus earnings average field.
data.calendar.Earnings DatearrayYahoo calendar earnings date field.
data.calendar.Earnings Date[]stringYahoo calendar earnings date field.
data.calendar.Earnings HighnumberYahoo consensus earnings high field.
data.calendar.Earnings LownumberYahoo consensus earnings low field.
data.calendar.Ex-Dividend DatestringYahoo calendar ex-dividend date field.
data.calendar.Revenue AverageintegerYahoo consensus revenue average field.
data.calendar.Revenue HighintegerYahoo consensus revenue high field.
data.calendar.Revenue LowintegerYahoo consensus revenue low field.

Fetch earnings-date rows for a company.

finance calendar.earnings fetches earnings-date rows for a company. It returns ok, data, error, and warnings in JSON output. The result payload includes symbol, rows, count, source.

Use this command when you need an earnings-date list with estimate, reported EPS, and surprise fields for recent or upcoming events.

Terminal window
finance calendar.earnings SYMBOL [limit=12] [--output json]
ArgumentRequiredDefaultAccepted valuesDescription
symbolYesNoneStringTicker symbol to query, such as AAPL or NVDA.
limitNo12IntegerMaximum number of records returned.
Terminal window
finance calendar.earnings AAPL limit=4 --output json

This output was generated with finance calendar.earnings AAPL limit=4 --output json.

{
"ok": true,
"data": {
"symbol": "AAPL",
"rows": [
{
"earnings_date": "2026-07-30T16:00:00-04:00",
"eps_estimate": 1.89,
"reported_eps": null,
"surprise": null
},
{
"earnings_date": "2026-04-30T16:00:00-04:00",
"eps_estimate": 1.94,
"reported_eps": 2.01,
"surprise": 3.46
},
{
"earnings_date": "2026-01-29T16:00:00-05:00",
"eps_estimate": 2.67,
"reported_eps": 2.84,
"surprise": 6.25
},
{
"earnings_date": "2025-10-30T16:00:00-04:00",
"eps_estimate": 1.77,
"reported_eps": 1.85,
"surprise": 4.52
}
],
"count": 4,
"source": "yfinance"
},
"error": null,
"warnings": []
}
FieldTypeDescription
okbooleanWhether the command completed successfully.
dataobject or nullCommand-specific result payload. It is null when ok is false.
errorstring or nullHuman-readable error message when ok is false; otherwise null.
warningsarrayNon-fatal warnings returned by the command.
data.countintegerNumber of records included in the adjacent result array.
data.rowsarrayStructured rows returned by the command.
data.rows[]objectStructured rows returned by the command.
data.sourcestringProvider or source identifier for the returned data.
data.symbolstringTicker symbol used for the earnings calendar request.
data.rows[].earnings_datestringEarnings date returned by the provider.
data.rows[].eps_estimatenumberConsensus EPS estimate when available.
data.rows[].reported_epsnumber or nullReported EPS for the event when available.
data.rows[].surprisenumber or nullEPS surprise value when available.