SubscriptionRemoveByTag

class saxo_openapi.endpoints.portfolio.accounts.SubscriptionRemoveByTag(ContextId, params)

Remove all subscriptions for the current session on this resource marked with a specific tag, and frees all resources on the server.

ENDPOINT = 'openapi/port/v1/accounts/subscriptions/{ContextId}/'
EXPECTED_STATUS = 202
METHOD = 'DELETE'
RESPONSE_DATA = None
__init__(ContextId, params)

Instantiate a SubscriptionRemoveByTag request.

Parameters:
  • ContextId (string (required)) – the ContextId
  • params (dict (required)) – dict with the querystring parameters.
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.portfolio as pf
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> params = {_v3_SubscriptionRemoveByTag_params}
>>> r = pf.accounts.SubscriptionRemoveByTag(ContextId, params=params)
>>> client.request(r)
>>> assert r.status_code == r.expected_status

No response data is returned.

expected_status
response

response - get the response of the request.

status_code