Ashares Sw Industry History
ashares_sw_industry_historyDaily HISTORY of Shenwan (申万) industry indices: dated open, high, low, close, change %, trading amount for one industry code, a list of codes, or all 31 level-1 industries (level=1), trimmed to a window. Answers "申万一级行业近120个交易日收盘", "Shenwan industry index closing prices over 60 days", "which Shenwan industries turned strong over 20/60/120 days", "801010 农林牧渔 historical close", "SW index relative strength". Each industry also gets window_return_pct (first to last close, computed). Window: limit most recent trading days (default 60) or start_date/end_date. Multi-industry calls fetch each series separately (slow: allow ~30 s for level=1); any series that fails is listed under failed, never dropped silently. For ONE day across all industries with P/E and P/B use ashares_sw_industries. Source: Shenwan Hongyuan Research, SW industry index publication.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "801010",
"limit": 120
},
"name": "ashares_sw_industry_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | One 6-digit Shenwan industry code, e.g. "801010" (Agriculture), "801080" (Electronics). | |
| codes | No | List of 6-digit Shenwan codes (max 31). | |
| level | No | Pass 1 to fetch all 31 level-1 industries in one call (names from the latest board). | |
| limit | No | Most recent N trading days within the window, 1-2000 (default 60 when no start_date). | |
| end_date | No | Window end, YYYY-MM-DD or YYYYMMDD (default: latest). | |
| start_date | No | Window start, YYYY-MM-DD or YYYYMMDD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codes | No | Requested codes (found:false) | |
| found | No | ||
| failed | No | Series that failed to load | |
| source | No | Publisher and dataset | |
| window | No | ||
| message | No | Plain-language explanation (found:false) | |
| not_found | No | Codes with no published series | |
| data_as_of | No | Latest bar date | |
| industries | No | One entry per industry | |
| field_notes | No | ||
| industries_returned | No |