指數成分股
獲取指數或 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[] | 否 | 標籤 |

