UsersMe¶
-
class
saxo_openapi.endpoints.portfolio.users.
UsersMe
¶ Get details about the logged in user.
-
ENDPOINT
= 'openapi/port/v1/users/me'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
()¶ Instantiate a UsersMe request.
>>> import saxo_openapi >>> import saxo_openapi.endpoints.portfolio as pf >>> import json >>> client = saxo_openapi.API(access_token=...) >>> r = pf.users.UsersMe() >>> client.request(r) >>> print(json.dumps(r.response, indent=4))
Output:
{ "ClientKey": "Cf4xZWiYL6W1nMKpygBLLA==", "Culture": "en-GB", "Language": "en", "LastLoginStatus": "Successful", "LastLoginTime": "2019-03-05T13:22:22.123000Z", "LegalAssetTypes": [ "FxSpot", "FxForwards", "FxVanillaOption", "FxKnockInOption", "FxKnockOutOption", "FxOneTouchOption", "FxNoTouchOption" ], "MarketDataViaOpenApiTermsAccepted": false, "Name": "F. Brekeveld", "TimeZoneId": 26, "UserId": "9226397", "UserKey": "Cf4xZWiYL6W1nMKpygBLLA==" }
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-