RemoveInfoPriceSubscriptionsByTag

class saxo_openapi.endpoints.trading.infoprices.RemoveInfoPriceSubscriptionsByTag(ContextId, params=None)

Remove one or more infoprice subscriptions.

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

Instantiate a RemoveInfoPriceSubscriptionsByTag request.

Parameters:
  • ContextId (string (required)) – the context id.
  • params (dict (required)) – dict representing the querystring parameters.
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.trading as tr
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> ContextId = 'ctxt_20190316'
>>> params =
        {
          "Tag": "IP"
        }
>>> r = tr.infoprices.RemoveInfoPriceSubscriptionsByTag(
...     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