Index Constituents / ETF Asset Allocation
constituentGet index constituents or ETF asset allocation. For an index, returns component stocks with weight and market cap; for an ETF, returns breakdowns by holdings, region, asset class, and industry.
Instructions
Get the constituents of an index or the asset allocation of an ETF. For an index (e.g. HSI.HK, .DJI.US) returns constituents[]{symbol, name, last_done, change_rate, market_cap, weight}. For an ETF (e.g. QQQ.US, 2800.HK) returns the asset allocation as info[] grouped by asset_type: 1=Holdings (top constituents with code, symbol, holding_detail), 2=Regional (country/region breakdown), 3=AssetClass (stock/bond/cash etc.), 4=Industry (sector breakdown). Each group has report_date and lists[]{name, position_ratio, name_locales}; Holdings groups additionally include code, symbol and holding_detail{industry_name, index_name, holding_type_name}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Index symbol, e.g. "HSI.HK" |