指数成分股
获取指数或 ETF 的成分股列表,支持排序并显示涨跌统计。
SDK Links
Parameters
SDK 方法参数。
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | 是 | 指数或 ETF 代码,例如 HSI.HK、SPY.US |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"fall_num": 10,
"flat_num": 3,
"rise_num": 7,
"stocks": [
{
"symbol": "9988.HK",
"name": "BABA-W",
"market": "HK",
"last_done": "140.90",
"prev_close": "132.80",
"chg": "0.0610",
"amount": "93828577",
"inflow": "18483450",
"balance": "13320299492",
"circulating_shares": "19192403958",
"total_shares": "19192403958",
"trade_status": 105,
"intro": "China's largest e-commerce platform",
"delay": false,
"tags": [
"Top gainers"
]
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | IndexConstituentsResponse |
| 400 | 请求错误 | None |
Schemas
IndexConstituentsResponse
| Name | Type | Required | Description |
|---|---|---|---|
| rise_num | integer | 否 | 上涨数量 |
| fall_num | integer | 否 | 下跌数量 |
| flat_num | integer | 否 | 平盘数量 |
| stocks | object[] | 是 | 成分股列表, |
| ∟ symbol | string | 是 | 证券代码 |
| ∟ name | string | 是 | 证券名称 |
| ∟ market | string | 否 | 市场 |
| ∟ last_done | string | 否 | 最新价 |
| ∟ prev_close | string | 否 | 前收盘价 |
| ∟ chg | string | 否 | 涨跌幅 |
| ∟ amount | string | 否 | 成交额 |
| ∟ inflow | string | 否 | 资金净流入 |
| ∟ circulating_shares | string | 否 | 流通股数 |
| ∟ total_shares | string | 否 | 总股数 |
| ∟ balance | string | 否 | 市值 |
| ∟ trade_status | integer | 否 | 交易状态码 |
| ∟ intro | string | 否 | 简介 |
| ∟ delay | boolean | 否 | 是否为延迟数据 |
| ∟ tags | string[] | 否 | 标签 |

