# Market holidays

> Exchange closures and early closes.

URL: https://renzo-digital.com/docs/resources/market-holidays

The holiday calendar lists days when an exchange is closed or closes early. Anyone may read it, no token needed.

## Endpoints

| Operation | What it does | Auth |
| --- | --- | --- |
| `GET /api/v1/market-holidays` | List holidays in a date range, earliest first. Cursor-paginated. | None |
| `GET /api/v1/market-holidays/markets` | List the exchanges, with their country and time zone. | None |

## Example: New York closures in late 2026

```bash tab="curl"
curl "$BASE/api/v1/market-holidays?start=2026-11-20&end=2026-12-31&markets=XNYS&limit=1"
```

```python tab="Python"
import os

import requests

BASE = os.environ["BASE"]

answer = requests.get(
    f"{BASE}/api/v1/market-holidays",
    params={"start": "2026-11-20", "end": "2026-12-31", "markets": "XNYS", "limit": 1},
)
answer.raise_for_status()
print(answer.json())
```

```js tab="Node.js"
const { BASE } = process.env;

const answer = await fetch(`${BASE}/api/v1/market-holidays?start=2026-11-20&end=2026-12-31&markets=XNYS&limit=1`);
if (!answer.ok) throw new Error(`HTTP ${answer.status}`);
console.log(await answer.json());
```

```json title="Response"
{
  "items": [
    {
      "id": "XNYS:2026-11-27",
      "date": "2026-11-27",
      "market": "XNYS",
      "market_name": "NYSE / Nasdaq",
      "market_name_locale": "en",
      "country": "US",
      "name": "Day after Thanksgiving Day",
      "name_locale": "en",
      "status": "early_close",
      "close_local": "13:00",
      "close_at": "2026-11-27T18:00:00Z",
      "time_zone": "America/New_York",
      "estimated": false
    }
  ],
  "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ",
  "has_more": true,
  "limit": 1
}
```

## Rules and edge cases

- **Date range.** `start` defaults to today, or to `end` minus 90 days when only `end` is sent. `end` defaults to `start` plus 90 days and is included. The range may not pass 400 days. A reversed or longer range answers `400` [`market_holidays_invalid_range`](https://renzo-digital.com/docs/error-codes#market_holidays_invalid_range).
- **Markets.** `markets` takes exchange codes: `XNYS`, `CMES`, `XETR`, `XEUR`, `XLON`, `XPAR`, `XHKG`, `XTKS`, `XBKK`, `XTAI`, `XSHG`, `XSES` or `XMOS`. Repeat it for more. An empty pick means all.
- **Status.** `status` is `closed` or `early_close`. It is the exchange's own status, not Juno's trading hours.
- **Names.** A holiday that moved off a weekend ends in `(observed)`, for example `Deepavali (observed)`.
- **Estimated.** `estimated` is `true` when the exchange has not published that date yet. The row can change.
- **Early close.** `close_local` is the closing time as `HH:MM` in the market's `time_zone`. `close_at` is the same moment in UTC. Both are `null` when the market is closed all day.
- **Dates.** `date` is the local date of the market.
- **Locale.** `locale` sets the language of `name` and `market_name`: `en`, `kk`, `ru`, `th`, `zh-Hans` or `zh-Hant`. English is used when there is no name, and `name_locale` says what you got. See [Locales](https://renzo-digital.com/docs/concepts/locales).
- **Paging.** `limit` defaults to 20 and may not pass 100. See [Pagination](https://renzo-digital.com/docs/concepts/pagination). An empty range answers `200` with an empty `items` list.

## Errors

| Code | Status | When |
| --- | --- | --- |
| [`market_holidays_invalid_range`](https://renzo-digital.com/docs/error-codes#market_holidays_invalid_range) | 400 | The date range is reversed or longer than 400 days. |
| [`invalid_cursor`](https://renzo-digital.com/docs/error-codes#invalid_cursor) | 400 | The cursor is damaged or belongs to another list. |

Sign-in and request errors, such as [`token_expired`](https://renzo-digital.com/docs/error-codes#token_expired) and [`validation_failed`](https://renzo-digital.com/docs/error-codes#validation_failed), can come from any call. See [Errors](https://renzo-digital.com/docs/concepts/errors).

## Reference

- [Market holidays in the API reference](https://renzo-digital.com/docs/api#tag/market-holidays)
