gs_quant.markets.baskets.Basket.poll_status

Basket.poll_status(timeout=600, step=30)[source]

Polls the status of the basket’s most recent create/edit/rebalance report

Parameters:
  • timeout (int) – how many seconds you’d like to poll for (default is 600 sec)

  • step (int) – how frequently you’d like to check the report’s status (default is every 30 sec)

Return type:

ReportStatus

Returns:

Report status

Usage

Poll the status of a newly created or updated basket

Examples

Poll most recent create/update report status:

>>> from gs_quant.markets.baskets import Basket
>>>
>>> basket = Basket.get("GSMBXXXX")
>>> basket.poll_status(timeout=120, step=20)

See also

create() update()