ClientDetails

class saxo_openapi.endpoints.portfolio.clients.ClientDetails(ClientKey)

Get details about a client.

ENDPOINT = 'openapi/port/v1/clients/{ClientKey}'
EXPECTED_STATUS = 200
METHOD = 'GET'
__init__(ClientKey)

Instantiate a ClientDetails request.

Parameters:ClientKey (string (required)) – the ClientKey
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.portfolio as pf
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> ClientKey = 'Cf4xZWiYL6W1nMKpygBLLA'
>>> r = pf.clients.ClientDetails(ClientKey=ClientKey)
>>> client.request(r)
>>> print(json.dumps(r.response, indent=4))
{
  "AccountValueProtectionLimit": 0,
  "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