GetUserNotificationSettings

class saxo_openapi.endpoints.valueadd.pricealerts.GetUserNotificationSettings

Get the current user’s price alert notification settings.

ENDPOINT = 'openapi/vas/v1/pricealerts/usersettings/'
EXPECTED_STATUS = 200
METHOD = 'GET'
__init__()

Instantiate a GetUserNotificationSettings request.

Parameters:None
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.valueadd as va
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> r = va.pricealerts.GetUserNotificationSettings()
>>> rv = client.request(r)
>>> print(json.dumps(rv, indent=2))
{
  "EmailAddress": "john.doe@broker.com",
  "EmailAddressValidated": false,
  "NotifyWithMail": true,
  "NotifyWithPopup": true,
  "Sound": "None"
}
expected_status
response

response - get the response of the request.

status_code