gs_quant.markets.index.Index.get_latest_constituents¶
- Index.get_latest_constituents()[source]¶
Fetch the latest constituents of the index in a pandas dataframe.
- Return type:
DataFrame
- Returns:
pandas dataframe with the index constituents, weights and other details.
Usage
Get the latest constituents of the index
Examples
Get latest index constituents:
>>> from gs_quant.markets.index import Index >>> >>> index = Index.get("GSMBXXXX") >>> index.get_latest_constituents()