Skip to Content

Index Components

Get the constituent stocks of an index or ETF with sorting options and rise/fall statistics.

CLI
longbridge constituent HSI.HK
longbridge constituent SPY.US

Parameters

SDK method parameters.

NameTypeRequiredDescription
symbolstringYESIndex 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

StatusDescriptionSchema
200SuccessIndexConstituentsResponse
400Bad requestNone

Schemas

IndexConstituentsResponse

NameTypeRequiredDescription
rise_numintegerfalseNumber of rising stocks
fall_numintegerfalseNumber of falling stocks
flat_numintegerfalseNumber of flat stocks
stocksobject[]trueList of constituent stocks
∟ symbolstringtrueSecurity symbol
∟ namestringtrueSecurity name
∟ marketstringfalseMarket
∟ last_donestringfalseLast trade price
∟ prev_closestringfalsePrevious close
∟ chgstringfalsePrice change percentage
∟ amountstringfalseTrading volume amount
∟ inflowstringfalseCapital inflow
∟ circulating_sharesstringfalseCirculating shares
∟ total_sharesstringfalseTotal shares
∟ balancestringfalseMarket cap
∟ trade_statusintegerfalseTrading status code
∟ introstringfalseBrief description
∟ delaybooleanfalseWhether data is delayed
∟ tagsstring[]falseTags