ClientSwitchPosNettingMode¶
-
class
saxo_openapi.endpoints.portfolio.clients.
ClientSwitchPosNettingMode
(params, data)¶ Enables IB to switch position netting mode and change account value protection limit on behalf of its clients.
-
ENDPOINT
= 'openapi/port/v1/clients/'¶
-
EXPECTED_STATUS
= 204¶
-
METHOD
= 'PATCH'¶
-
RESPONSE_DATA
= None¶
-
__init__
(params, data)¶ Instantiate a ClientSwitchPosNettingMode request.
Parameters: - params (dict (required)) – the dict representing the querystring parameters.
- data (dict (required)) – the dict representing the data body parameters.
>>> import saxo_openapi >>> import saxo_openapi.endpoints.portfolio as pf >>> import json >>> client = saxo_openapi.API(access_token=...) >>> params = { "ClientKey": "Cf4xZWiYL6W1nMKpygBLLA==" }
>>> data = { "AccountValueProtectionLimit": 100000, "NewPositionNettingMode": "EndOfDay" }
>>> r = pf.clients.ClientSwitchPosNettingMode(params=params, 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
¶
-