Returns Shenwan (SW) industry classification data for A-Share stocks.
Request
GET /api/v1/stock/industry-swHeaders
| Header | Value |
|---|---|
F-API-KEY | Your API key |
Query Parameters
| Parameter | Type | Required | Filter | Description |
|---|---|---|---|---|
code | string | No | exact | Stock code |
industry_code | string | No | exact | Industry code |
source | string | No | exact | Data source |
name | string | No | like | Stock name (fuzzy match) |
limit | integer | No | — | Max rows per page (default 100, max 1000) |
offset | integer | No | — | Rows to skip (default 0) |
sort | string | No | — | Sort field (default code) |
order | asc | desc | No | — | Sort direction (default asc) |
Example
curl -H "F-API-KEY: fk-xxxxx" \ "https://finance-api.xp-java.workers.dev/api/v1/stock/industry-sw?code=600519"Response
{ "code": 0, "message": "ok", "data": [ { "code": "600519", "name": "贵州茅台", "industry_code": "440101", "industry_name": "白酒", "industry_level": 3, "source": "shenwan", "updated_at": "2024-12-31T00:00:00Z" } ], "meta": { "total": 1, "limit": 100, "offset": 0, "has_more": false }}