gs_quant.markets.indices_utils.get_flagships_with_assets¶
- get_flagships_with_assets(identifiers, fields=[], basket_type=['Custom Basket', 'Research Basket'], asset_class=[Equity], region=None, styles=None, as_of=None, **kwargs)[source]¶
Retrieve a list of flagship baskets containing specified assets
- Parameters:
identifiers (
List
[str
]) – List of asset identifiersfields (
List
[str
]) – Fields to retrieve in addition to mqid, name, ticker, region, basket type, description, styles, live date, and asset classbasket_type (
List
[BasketType
]) – Basket type(s)asset_class (
List
[AssetClass
]) – Asset class (defaults to Equity)region (
Optional
[List
[Region
]]) – Basket region(s)styles (
Optional
[List
[Union
[CustomBasketStyles
,ResearchBasketStyles
]]]) – Basket style(s)as_of (
Optional
[datetime
]) – Datetime for which to retrieve baskets (defaults to current time)
- Return type:
DataFrame
- Returns:
flagship baskets containing specified assets
Usage
Retrieve a list of flagship baskets containing specified assets
Examples
Retrieve a list of flagship custom baskets containing ‘AAPL UW’ single stock
>>> from gs_quant.markets.indices_utils import * >>> >>> get_flagships_with_assets(identifiers=['AAPL UW'], basket_type=[BasketType.CUSTOM_BASKET])
See also
get_flagship_baskets()
get_flagships_performance()
get_flagships_constituents()