Skip to content

GET /api/v1/stock/industry-sw

Shenwan industry classification.

Returns Shenwan (SW) industry classification data for A-Share stocks.

Request

GET /api/v1/stock/industry-sw

Headers

HeaderValue
F-API-KEYYour API key

Query Parameters

ParameterTypeRequiredFilterDescription
codestringNoexactStock code
industry_codestringNoexactIndustry code
sourcestringNoexactData source
namestringNolikeStock name (fuzzy match)
limitintegerNoMax rows per page (default 100, max 1000)
offsetintegerNoRows to skip (default 0)
sortstringNoSort field (default code)
orderasc | descNoSort direction (default asc)

Example

Terminal window
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
}
}