交易日历

上海证券交易所(SSE)和深圳证券交易所(SZSE)的交易日历。可用于定时数据拉取和节假日处理。

GET /v2/reference/trade-calendar
curl -H "X-API-Key: YOUR_KEY" \
  "https://asharehub.com/v2/reference/trade-calendar?exchange=SSE&is_open=1&start_date=20240101&limit=20"

请求参数

参数 类型 必填 说明
exchange string 交易所:SSE 上交所 / SZSE 深交所(默认 SSE)
is_open int 是否交易日:1 交易 / 0 休市
start_date string 开始日期 (YYYYMMDD)
end_date string 结束日期 (YYYYMMDD)
limit int 最大行数(默认即返回到上限,无需手动调大)

返回字段

字段 类型 说明
exchange string 交易所代码(SSE / SZSE)
cal_date string 日历日期
is_open int 1=交易日, 0=休市
pretrade_date string 上一个交易日