Users¶
-
class
saxo_openapi.endpoints.portfolio.users.
Users
(params)¶ Get all users under a particular owner.
-
ENDPOINT
= 'openapi/port/v1/users'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
(params)¶ Instantiate a Users request.
Parameters: params (dict (required)) – dict representing the querystring parameters >>> import saxo_openapi >>> import saxo_openapi.endpoints.portfolio as pf >>> import json >>> client = saxo_openapi.API(access_token=...) >>> params = { "ClientKey": "Cf4xZWiYL6W1nMKpygBLLA==" }
>>> r = pf.users.Users(params=params) >>> client.request(r) >>> print(json.dumps(r.response, indent=4))
Output:
{ "Data": [ { "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
¶
-