DeletePriceAlert

class saxo_openapi.endpoints.valueadd.pricealerts.DeletePriceAlert(AlertDefinitionIds)

Delete the specified price alert definitions. The alerts have to belong to the current user.

ENDPOINT = 'openapi/vas/v1/pricealerts/definitions/{AlertDefinitionIds}'
EXPECTED_STATUS = 204
METHOD = 'DELETE'
RESPONSE_DATA = None
__init__(AlertDefinitionIds)

Instantiate a DeletePriceAlert request.

Parameters:AlertDefinitionIds (string (required)) – string with ‘,’-delimited AlertDefinitionIds
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.valueadd as va
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> AlertDefinitionIds = '30384,30386'
>>> r = va.pricealerts.DeletePriceAlert(AlertDefinitionIds)
>>> 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