ChartDataRemoveSubscriptions

class saxo_openapi.endpoints.chart.charts.ChartDataRemoveSubscriptions(ContextId, params=None)

Removes all subscriptions for the current session on this resource, and frees all resources on the server.

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

Instantiate a ChartDataRemoveSubscriptions request.

Parameters:
  • ContextId (string (required)) – the ContextId
  • params (dict (optional)) – dict representing the querystring parameters
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.chart as ch
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> params =
        {}
>>> ContextId = ...
>>> r = ch.charts.ChartDataRemoveSubscriptions(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