ClientDetailsMe

class saxo_openapi.endpoints.portfolio.clients.ClientDetailsMe

Get details about logged-in user’s client.

ENDPOINT = 'openapi/port/v1/clients/me'
EXPECTED_STATUS = 200
METHOD = 'GET'
__init__()

Instantiate a ClientDetailsMe request.

>>> import saxo_openapi
>>> import saxo_openapi.endpoints.portfolio as pf
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> r = pf.clients.ClientDetailsMe()
>>> 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