---
title: "交易日历（默认上交所）"
method: GET
path: "/v1/reference/trade-calendar"
tags: ["基础信息"]
---

# 交易日历（默认上交所）

`GET /v1/reference/trade-calendar`

## Request

- Base URL: `https://quantsonar.com`
- URL: `https://quantsonar.com/v1/reference/trade-calendar`
- Auth: API key in header `X-API-Key`

## Query parameters

- `start_date` string, nullable: 起始日期 YYYYMMDD
- `end_date` string, nullable: 结束日期 YYYYMMDD
- `exchange` string, nullable: 交易所：SSE 上交所 / SZSE 深交所
- `is_open` integer, nullable: 是否交易日：1 是 / 0 否

## Response `200`

Successful Response

- object[]
  - `exchange` unknown
  - `cal_date` unknown
  - `is_open` unknown
  - `pretrade_date` unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/quantsonar/apis/quantsonar-agent-data-api.md) · [All operations](https://skmtc.dev/quantsonar/apis/quantsonar-agent-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quantsonar/apis/quantsonar-agent-data-api/revisions/1457cc05fb2b?raw)
