gs_quant.markets.index.Index.get_identifiers

Index.get_identifiers(as_of=None)

Get asset identifiers

Parameters:

as_of (Optional[date]) – As of date for query

Return type:

dict

Returns:

dict of identifiers

Usage

Get asset identifiers as of a given date. Where the identifiers are temporal (and can change over time), this function will return the identifiers as of that point in time. If no date is provided as a parameter, will use the current PricingContext.

Examples

Get current asset identifiers:

>>> gs = SecurityMaster.get_asset("GS", AssetIdentifier.TICKER)
>>> gs.get_identifiers()

Get identifiers as of 1Jan18:

>>> gs.get_identifiers(dt.date(2018,1,1))

Use PricingContext to determine as of date:

>>> with PricingContext(dt.date(2018,1,1)) as ctx:
>>>     gs.get_identifiers()

See also

AssetIdentifier get_asset()