gs_quant.markets.position_set.PositionSet.from_list

classmethod PositionSet.from_list(positions, date=datetime.date(2023, 8, 14))[source]

Create equally-weighted PostionSet instance from a list of identifiers

Usage

Create equally-weighted PostionSet instance from a list of identifiers

Examples

Create equally-weighted PostionSet instance from a list of identifiers:

>>> from gs_quant.markets.position_set import PositionSet
>>>
>>> identifiers = ['AAPL UW', 'MSFT UW']
>>> position_set = PositionSet.from_list(positions=identifiers)

See also

get_positions() resolve() from_dicts() from_frame() to_frame()