Tushare Weekly

1 credits/call
ae_tushare_weekly

View A-share weekly market data, updated on the final trading day of each week.

Productivity
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
fieldsarrayNo指定返回字段,不传则返回默认字段。 默认字段: ts_code, trade_date, close, open, high, low, pre_close, change, pct_chg, vol, amount 额外可选字段: (所有字段均为默认返回,无需指定)—
ts_codestringConditionalTuShare股票代码,例如000001.SZ。ts_code和trade_date至少填写一个,且不能为空。—
end_datestringNo结束日期—
start_datestringNo开始日期—
trade_datestringConditional周交易日期,格式为YYYYMMDD,通常为每周最后一个交易日。trade_date和ts_code至少填写一个,且不能为空。—

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_weekly' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "end_date": "20240531",
    "fields": [
      "trade_date",
      "open",
      "high",
      "low",
      "close",
      "pct_chg",
      "vol"
    ],
    "start_date": "20230601",
    "ts_code": "000690.SZ"
  }
}'
Response exampleresponse.json
JSONPartial content
[
  {
    "close": 5.24,
    "high": 5.45,
    "low": 5.14,
    "open": 5.27,
    "pct_chg": 0.0,
    "trade_date": "20240531"
  }
]

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