Market Calendar & Trading Hours
tt_market_calendarExchange holidays + trading hours. No setup needed beyond the one-time sign-in — no broker, paid plan, or strategy data.
from_date / to_date: YYYY-MM-DD (e.g. '2026-10-02'); any other
format is refused with COMMON_BAD_INPUT. holidays.window echoes
the window served. For one day, pass the same date in both. With no
dates the window is today (IST) plus 90 days; a missing to_date is
90 days after from_date, a missing from_date 90 days before to_date
(holidays.window.defaulted says which was filled in). For a whole
year, pass that year's first and last day.
Use for "is the market open on ?", "when does NSE close?",
trading-hours/timezone questions. Returns the holiday list (incl.
partial-day Muhurat exceptions) and per-exchange start/end/expiry times.
Also returns now (the current IST time) and, when the window covers
today, today (does the exchange trade today, is it open now): answer
"is the market open today?" from those, not from your own date.
Read field_note before quoting a field. Three of them are not what
they look like: the holiday rows are nested at holidays.holidays;
holidays.excludes is a small GLOBAL list returned unfiltered on every
call (the same three rows come back for a US or crypto venue, two of
them Indian Union Budget days) and is not part of the answer to the
query; and expiry_time is the master's stored stamp, reading
00:00:00 on the thirteen venues that have none and not always sitting
inside the row's own session. Trading hours are start_time /
end_time and sessions.
For holiday-aware strategy logic (e.g. "skip to next trading day"), use the tt_next_trading_day keyword instead — it resolves at runtime.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tt_market_calendar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | No | YYYY-MM-DD. Default: 90 days after from_date. | |
| exchange | No | ||
| from_date | No | YYYY-MM-DD. Default: today (IST), or 90 days before to_date. |