gs_quant.markets.position_set.PositionSet.get_positions

PositionSet.get_positions()[source]

Retrieve formatted positions

Return type:

DataFrame

Returns:

DataFrame of positions for position set

Usage

View position set position info

Examples

Get position set positions:

>>> from gs_quant.markets.position_set import Position, PositionSet
>>>
>>> my_positions = [Position(identifier='AAPL UW'), Position(identifier='MSFT UW')]
>>> position_set = PositionSet(positions=my_positions)
>>> position_set.get_positions()

See also

get_unresolved_positions() get_unpriced_positions() resolve() price()