ClientDetailsUpdate¶
-
class
saxo_openapi.endpoints.portfolio.clients.
ClientDetailsUpdate
(data)¶ Enables user of the client to switch position netting mode of its own.
-
ENDPOINT
= 'openapi/port/v1/clients/me'¶
-
EXPECTED_STATUS
= 204¶
-
METHOD
= 'PATCH'¶
-
RESPONSE_DATA
= None¶
-
__init__
(data)¶ Instantiate a ClientDetailsUpdate request.
Parameters: data (dict (required)) – dict with parameters representing the data body. >>> import saxo_openapi >>> import saxo_openapi.endpoints.portfolio as pf >>> import json >>> client = saxo_openapi.API(access_token=...) >>> data = { "AccountValueProtectionLimit": 10000, "NewPositionNettingMode": "EndOfDay" }
>>> r = pf.clients.ClientDetailsUpdate(data=data) >>> 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
¶
-