Calendar Endpoints (3)
Market calendar data for determining trading schedules, holidays, and early close days. All calendar data reflects NYSE trading hours.
Endpoints
| Endpoint | Description |
|---|---|
| calendar_open_today | Check if the market is open today |
| calendar_on_date | Get the trading schedule for a specific date |
| calendar_year | Get the full trading calendar for a year |
Quick Example
rust
let days = tdx.calendar_open_today().await?;
let days = tdx.calendar_on_date("20240315").await?;
let days = tdx.calendar_year("2024").await?;python
result = tdx.calendar_open_today()
result = tdx.calendar_on_date("20240315")
result = tdx.calendar_year("2024")typescript
const result1 = tdx.calendarOpenToday();
const result2 = tdx.calendarOnDate('20240315');
const result3 = tdx.calendarYear('2024');cpp
auto today = client.calendar_open_today();
auto date_info = client.calendar_on_date("20240315");
auto year_info = client.calendar_year("2024");WARNING
Calendar data reflects NYSE trading hours. Other exchanges may have different schedules.