Tushare Index Classify

1 credits/call
ae_tushare_index_classify

Browse Shenwan’s 2014 and 2021 industry classifications, including Level 1–3 categories and their hierarchy.

Productivity
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
srcstringNo指数来源(SW2014:申万2014年版本,SW2021:申万2021年版本)—
levelstringNo行业分级(L1/L2/L3)—
fieldsarrayNo指定返回字段,不传则返回默认字段。 默认字段: index_code, industry_name, parent_code, level, industry_code, is_pub 额外可选字段: src: 行业分类(SW申万)—
index_codestringNo指数代码—
parent_codestringNo父级代码(一级为0)—

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_index_classify' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "level": "L1",
    "src": "SW2021"
  }
}'
Response exampleresponse.json
JSONPartial content
[
  {
    "index_code": "801010.SI",
    "industry_code": "110000",
    "industry_name": "农林牧渔",
    "is_pub": "1",
    "level": "L1",
    "parent_code": "0"
  }
]

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