API 接口文档
行业与概念板块
证监会行业分类、申万行业分类、题材概念代码表及概念成分股查询接口。
行业与概念板块 API
证监会行业分类、申万行业分类、题材概念代码表及概念成分股查询接口。
接口清单汇总(共 7 项)
| 接口端点 | 请求方法 | 关键查询参数 | 功能说明 |
|---|---|---|---|
/v1/sectors/concept | GET | limit | 概念列表 |
/v1/sectors/concept-code | GET | limit | 概念代码表 |
/v1/sectors/concept-ths | GET | concept_code, symbol, limit | 同花顺概念成分股 |
/v1/sectors/concept/constituents | GET | concept_code, symbol, limit | 概念成分股 |
/v1/sectors/industry | GET | page, page_size, keyword, exchange, industry_classification | Get Stock Industry |
/v1/sectors/industry-sw | GET | industry_code, symbol, limit | 申万行业 |
/v1/sectors/plate | GET | limit | 行业板块 |
详细接口规范与调用示例
GET /v1/sectors/concept
概念列表
获取东财概念板块列表
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
limit | integer | 否 | 500 | 返回条数 |
cURL 调用示例
curl -X GET "https://tickerlab.org/v1/sectors/concept?limit=10" \
-H "X-API-Key: $TICKERLAB_API_KEY"
Python 调用示例
import requests
url = "https://tickerlab.org/v1/sectors/concept"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
"limit": 10
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
GET /v1/sectors/concept-code
概念代码表
获取原始概念代码字典表数据
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
limit | integer | 否 | 500 | 返回条数 |
cURL 调用示例
curl -X GET "https://tickerlab.org/v1/sectors/concept-code?limit=10" \
-H "X-API-Key: $TICKERLAB_API_KEY"
Python 调用示例
import requests
url = "https://tickerlab.org/v1/sectors/concept-code"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
"limit": 10
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
GET /v1/sectors/concept-ths
同花顺概念成分股
获取同花顺概念板块成分股列表
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
concept_code | string | 否 | — | 概念指数代码 (可选) |
symbol | string | 否 | — | 股票代码 (可选) |
limit | integer | 否 | 500 | 返回条数 |
cURL 调用示例
curl -X GET "https://tickerlab.org/v1/sectors/concept-ths?symbol=sz.000001&limit=10" \
-H "X-API-Key: $TICKERLAB_API_KEY"
Python 调用示例
import requests
url = "https://tickerlab.org/v1/sectors/concept-ths"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
"concept_code": "value",
"symbol": "sz.000001",
"limit": 10
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
GET /v1/sectors/concept/constituents
概念成分股
获取东财概念板块成分股列表
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
concept_code | string | 否 | — | 概念代码 (可选) |
symbol | string | 否 | — | 股票代码 (可选,查询该股所属概念) |
limit | integer | 否 | 500 | 返回条数 |
cURL 调用示例
curl -X GET "https://tickerlab.org/v1/sectors/concept/constituents?symbol=sz.000001&limit=10" \
-H "X-API-Key: $TICKERLAB_API_KEY"
Python 调用示例
import requests
url = "https://tickerlab.org/v1/sectors/concept/constituents"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
"concept_code": "value",
"symbol": "sz.000001",
"limit": 10
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
GET /v1/sectors/industry
Get Stock Industry
获取股票行业分类
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
page | integer | 否 | 1 | 页码,从 1 开始 |
page_size | integer | 否 | 50 | 每页条数 |
keyword | string | 否 | — | 代码/名称/行业关键词 (可选) |
exchange | string | 否 | — | 交易所过滤 (SSE/SZSE/BSE) (可选) |
industry_classification | string | 否 | — | 行业分类过滤 (可选) |
cURL 调用示例
curl -X GET "https://tickerlab.org/v1/sectors/industry" \
-H "X-API-Key: $TICKERLAB_API_KEY"
Python 调用示例
import requests
url = "https://tickerlab.org/v1/sectors/industry"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
"page": "value",
"page_size": "value",
"keyword": "value"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
GET /v1/sectors/industry-sw
申万行业
获取申万行业分类数据
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
industry_code | string | 否 | — | 行业代码 (可选) |
symbol | string | 否 | — | 股票代码 (可选) |
limit | integer | 否 | 500 | 返回条数 |
cURL 调用示例
curl -X GET "https://tickerlab.org/v1/sectors/industry-sw?symbol=sz.000001&limit=10" \
-H "X-API-Key: $TICKERLAB_API_KEY"
Python 调用示例
import requests
url = "https://tickerlab.org/v1/sectors/industry-sw"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
"industry_code": "value",
"symbol": "sz.000001",
"limit": 10
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
GET /v1/sectors/plate
行业板块
获取行业板块列表
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
limit | integer | 否 | 200 | 返回条数 |
cURL 调用示例
curl -X GET "https://tickerlab.org/v1/sectors/plate?limit=10" \
-H "X-API-Key: $TICKERLAB_API_KEY"
Python 调用示例
import requests
url = "https://tickerlab.org/v1/sectors/plate"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
"limit": 10
}
response = requests.get(url, headers=headers, params=params)
print(response.json())