from gs_quant.markets.baskets import Basket
from gs_quant.markets.indices_utils import CorporateActionType
from gs_quant.session import Environment, GsSession
client = 'CLIENT ID'
secret = 'CLIENT SECRET'
GsSession.use(Environment.PROD, client_id=client, client_secret=secret, scopes=('read_product_data read_user_profile',))
basket = Basket.get('GSMBXXXX') # substitute input with any identifier for a basket
You may choose any combination of the following corporate action types:
basket.get_corporate_actions(ca_type=[CorporateActionType.IDENTIFIER_CHANGE, CorporateActionType.RIGHTS_ISSUE])