ClientDetailsByOwner¶
-
class
saxo_openapi.endpoints.portfolio.clients.
ClientDetailsByOwner
(params)¶ Get details about clients under a particular owner.
-
ENDPOINT
= 'openapi/port/v1/clients/'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
(params)¶ Instantiate a ClientDetailsByOwner request.
Parameters: params (dict (required)) – the dict representing the querystring parameters. >>> import saxo_openapi >>> import saxo_openapi.endpoints.portfolio as pf >>> import json >>> client = saxo_openapi.API(access_token=...) >>> params = { "OwnerKey": "Cf4xZWiYL6W1nMKpygBLLA==" }
>>> r = pf.clients.ClientDetailsByOwner(params=params) >>> client.request(r) >>> print(json.dumps(r.response, indent=4))
{ "Data": [ { "AccountValueProtectionLimit": 10000, "ClientId": "9226397", "ClientKey": "Cf4xZWiYL6W1nMKpygBLLA==", "CurrencyDecimals": 2, "DefaultAccountId": "9226397", "DefaultAccountKey": "Cf4xZWiYL6W1nMKpygBLLA==", "DefaultCurrency": "EUR", "IsMarginTradingAllowed": true, "IsVariationMarginEligible": false, "LegalAssetTypes": [ "FxSpot", "FxForwards", "FxVanillaOption", "FxKnockInOption", "FxKnockOutOption", "FxOneTouchOption", "FxNoTouchOption" ], "LegalAssetTypesAreIndicative": false, "Name": "F. Brekeveld", "PositionNettingMode": "EndOfDay", "SupportsAccountValueProtectionLimit": true } ] }
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-