Skip to content

Year

FreeValueStandardPro

Get equity market holidays and early-close days for a year (vendor year_holidays endpoint — only non-standard days, not every trading day).

  • Retrieves equity market holidays for a given year
  • Note: Holiday data is available 01/01/2012 through the end of the calendar year that immediately follows the current year
  • *On days when the market closes early at 1:00 PM ET; eligible options will trade until 1:15 PM.
  • **Some NYSE exchanges will continue late trading until 5:00 PM ET on early close days.
rust
pub fn calendar_year(&self, year: &str) -> CalendarYearBuilder<'_>

Execute with .awaitResult<Vec<CalendarDay>, Error>, or decode chunk-by-chunk with .stream(handler).

Example

rust
let rows = tdx.calendar_year("2025").await?;
for t in &rows {
    println!("date={} is_open={} status={}", t.date, t.is_open, t.status);
}

Parameters

NameTypeRequiredDefaultDescription
yearstringyes4-digit year (e.g. 2024)
timeout_msintnoPer-request deadline in milliseconds. 0 means no deadline.

Response

Rows of CalendarDay:

FieldTypeDescription
datei32Calendar date as a YYYYMMDD integer. 0 when the server omits the column (single-day endpoints).
is_openboolWhether the market trades at all on this date (true for open and early-close days).
open_timei32Market open time, milliseconds since midnight ET.
close_timei32Market close time, milliseconds since midnight ET.
statusstringVendor day classification: open, early_close, full_close, or weekend.

Released under the Apache-2.0 License.