RemoveExposureSubscriptionsByTag¶
-
class
saxo_openapi.endpoints.portfolio.exposure.
RemoveExposureSubscriptionsByTag
(ContextId, params=None)¶ Removes multiple all subscriptions for the current session on this resource, and frees all resources on the server.
-
ENDPOINT
= 'openapi/port/v1/exposure/instruments/subscriptions/{ContextId}/'¶
-
EXPECTED_STATUS
= 202¶
-
METHOD
= 'DELETE'¶
-
RESPONSE_DATA
= None¶
-
__init__
(ContextId, params=None)¶ Instantiate a RemoveExposureSubscriptionsByTag request.
Parameters: - ContextId (string (required)) – the ContextId
- params (dict (optional)) – dict representing the querystring parameters
>>> import saxo_openapi >>> import saxo_openapi.endpoints.portfolio as pf >>> import json >>> client = saxo_openapi.API(access_token=...) >>> params = {}
>>> ContextId = 'explorer_1552035128308' >>> r = pf.exposure.RemoveExposureSubscriptionsByTag(ContextId, ... params=params) >>> client.request(r) >>> assert r.status_code == r.expected_status
No data returned.
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-