Fundamental

Index Components

GEThttps://openapi.longbridge.com/v1/quote/index-constituents

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

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

Request

Query parameters

NameTypeRequiredDescription
symbolstringRequiredIndex or ETF symbol, e.g. `HSI.HK`, `SPY.US`

Response

Response properties

NameTypeRequiredDescription
totalintegerOptionalTotal number of matching stocks.
└ symbolstringOptionalSecurity symbol
└ trade_statusintegerOptionalTrading status code
└ last_donestringOptionalLast trade price
└ prev_closestringOptionalPrevious close
└ inflowstringOptionalCapital inflow
└ balancestringOptionalMarket cap
└ amountstringOptionalTrading volume amount
└ total_sharesstringOptionalTotal shares
└ circulating_sharesstringOptionalCirculating shares
└ tagsarrayOptionalTags
└ namestringOptionalSecurity name
└ marketstringOptionalMarket
└ introstringOptionalBrief description
└ delaybooleanOptionalWhether data is delayed
└ chgstringOptionalPrice change percentage
rise_numintegerOptionalNumber of rising stocks
fall_numintegerOptionalNumber of falling stocks
flat_numintegerOptionalNumber of flat stocks

Response JSON example

{
  "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"
        ]
      }
    ]
  }
}

Error code

See the Error Codes page for the full list of error codes.