Index Components
Get the constituent stocks of an index or ETF with sorting options and rise/fall statistics.
SDK Links
Parameters
SDK method parameters.
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | YES | Index or ETF symbol, e.g. 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 | Success | IndexConstituentsResponse |
| 400 | Bad request | None |
Schemas
IndexConstituentsResponse
| Name | Type | Required | Description |
|---|---|---|---|
| rise_num | integer | false | Number of rising stocks |
| fall_num | integer | false | Number of falling stocks |
| flat_num | integer | false | Number of flat stocks |
| stocks | object[] | true | List of constituent stocks |
| ∟ symbol | string | true | Security symbol |
| ∟ name | string | true | Security name |
| ∟ market | string | false | Market |
| ∟ last_done | string | false | Last trade price |
| ∟ prev_close | string | false | Previous close |
| ∟ chg | string | false | Price change percentage |
| ∟ amount | string | false | Trading volume amount |
| ∟ inflow | string | false | Capital inflow |
| ∟ circulating_shares | string | false | Circulating shares |
| ∟ total_shares | string | false | Total shares |
| ∟ balance | string | false | Market cap |
| ∟ trade_status | integer | false | Trading status code |
| ∟ intro | string | false | Brief description |
| ∟ delay | boolean | false | Whether data is delayed |
| ∟ tags | string[] | false | Tags |

