BalanceSubscriptionRemoveByTag

class saxo_openapi.endpoints.portfolio.balances.BalanceSubscriptionRemoveByTag(ContextId, params)

Remove multiple subscriptions for the current session on this resource and frees all resources on the server.

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

Instantiate an BalanceSubscriptionRemoveByTag request.

Parameters:
  • ContextId (string (required)) – the ContextId
  • params (dict (required)) – dict representing the querystring parameters
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.portfolio as pf
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> params =
        {
          "Tag": "PAGE1"
        }
>>> ContextId = "explorer_1551792578055"
>>> r = pf.BalanceSubscriptionRemoveByTag(ContextId=ContextId,
...                                       params=params)
>>> client.request(r)
>>> assert r.status_code == r.expected_status

No data is returned.

expected_status
response

response - get the response of the request.

status_code