ashares_sw_industries
Pack: china-stocks · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ashares_sw_industries for the schema, then POST the same URL with its arguments for the data.
Shenwan level 1/2/3 industry indices for a day: close, change %, turnover, P/E, P/B, dividend yield.
Tool description as the model sees it
Shenwan (\u7533\u4e07) industry index board for a trading day: close, change %, turnover rate, trading amount (unit as published), share of market turnover, P/E, P/B and dividend yield for every Shenwan level-1 (31 industries), level-2 (131) or level-3 (336) industry. Answers “\u7533\u4e07\u4e00\u7ea7\u884c\u4e1a\u6da8\u8dcc\u5e45”, “Shenwan industry PE PB”, “which Shenwan industry rose most on 2026-11-06”, “\u534a\u5bfc\u4f53 801081 \u5e02\u76c8\u7387 \u5e02\u51c0\u7387”, “SW industry valuation ranking”, “\u884c\u4e1a\u4f30\u503c”. Filter to one industry with code (e.g. 801081 semiconductors, level 2) and rank with sort. Up/down stock counts, limit-up counts and 20-day highs per industry are NOT published by this source and are listed under not_provided. Source: Shenwan Hongyuan Research, SW industry index daily publication.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
level | number | no | Shenwan industry level: 1 (31 industries, default), 2 (131) or 3 (336). A code given in code selects its level automatically. |
date | string | no | Trading day, YYYY-MM-DD or YYYYMMDD (default: latest published trading day). A non-trading date returns found:false with the nearest prior trading day. |
code | string | no | One 6-digit Shenwan industry code, e.g. “801080” (Electronics, L1) or “801081” (Semiconductors, L2). |
sort | string | no | Sort descending by this field (default: by code). |
limit | number | no | Max rows returned, 1-400 (default: all rows of the level). |
Example call
Arguments
{
"date": "2026-11-06",
"sort": "change"
}
curl
curl -X POST https://gateway.pipeworx.io/china-stocks/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ashares_sw_industries","arguments":{"date":"2026-11-06","sort":"change"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ashares_sw_industries', {
"date": "2026-11-06",
"sort": "change"
});
More examples
{
"code": "801081",
"date": "2026-11-06"
}
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
level | number | |
level_name | string | |
trade_date | string | |
data_as_of | string | |
date | string | |
code | string | null | |
message | string | |
source | string | |
nearest_prior_trading_day | string | null | |
industries_total | number | |
returned | number | |
sorted_by | string | |
valuation_for_code | object | |
industries | array | |
field_notes | object | |
not_provided | object |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"level": {
"type": "number"
},
"level_name": {
"type": "string"
},
"trade_date": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"date": {
"type": "string"
},
"code": {
"type": [
"string",
"null"
]
},
"message": {
"type": "string"
},
"source": {
"type": "string"
},
"nearest_prior_trading_day": {
"type": [
"string",
"null"
]
},
"industries_total": {
"type": "number"
},
"returned": {
"type": "number"
},
"sorted_by": {
"type": "string"
},
"valuation_for_code": {
"type": "object",
"properties": {
"pe": {
"type": [
"number",
"null"
]
},
"pb": {
"type": [
"number",
"null"
]
},
"published": {
"type": "boolean"
}
},
"additionalProperties": true
},
"industries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"close": {
"type": [
"number",
"null"
]
},
"change_pct": {
"type": [
"number",
"null"
]
},
"turnover_rate_pct": {
"type": [
"number",
"null"
]
},
"trading_amount": {
"type": [
"number",
"null"
]
},
"pct_of_market_turnover": {
"type": [
"number",
"null"
]
},
"pe": {
"type": [
"number",
"null"
]
},
"pb": {
"type": [
"number",
"null"
]
},
"dividend_yield_pct": {
"type": [
"number",
"null"
]
},
"float_market_cap": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
}
},
"field_notes": {
"type": "object",
"properties": {},
"additionalProperties": true
},
"not_provided": {
"type": "object",
"properties": {},
"additionalProperties": true
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the china-stocks pack
{
"mcpServers": {
"china-stocks": {
"url": "https://gateway.pipeworx.io/china-stocks/mcp"
}
}
}
See Getting Started for client-specific install steps.