gs_quant.markets.baskets.Basket.clone

Basket.clone()[source]

Retrieve a clone of an existing basket

Returns:

New basket instance with position set identical to current basket

Usage

Clone an existing basket’s position set in a new basket instance prior to creation

Examples

Clone current basket:

>>> from gs_quant.markets.baskets import Basket
>>>
>>> parent_basket = Basket.get("GSMBXXXX")
>>> clone = parent_basket.clone()

See also

create()