Tushare Trade Cal

1 credits/call
ae_tushare_trade_cal

Check whether mainland China exchanges are open or closed on specific dates, including the previous trading day.

Productivity
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
fieldsarrayNo指定返回字段,不传则返回默认字段。 默认字段: exchange, cal_date, is_open, pretrade_date 额外可选字段: (所有字段均为默认返回,无需指定)—
is_openstringNo是否交易 '0'休市 '1'交易—
end_datestringNo结束日期—
exchangestringNo交易所 SSE上交所,SZSE深交所,CFFEX 中金所,SHFE 上期所,CZCE 郑商所,DCE 大商所,INE 上能源—
start_datestringNo开始日期 (格式:YYYYMMDD 下同)—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_tushare_trade_cal' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "end_date": "20261112",
    "exchange": "SSE",
    "fields": [
      "cal_date",
      "is_open"
    ],
    "is_open": "1",
    "start_date": "20261008"
  }
}'
Response exampleresponse.json
JSONPartial content
[
  {
    "cal_date": "20261112",
    "is_open": 1
  }
]

This example shows part of the response. Copied content is valid JSON.