AccountGroupsList¶
-
class
saxo_openapi.endpoints.portfolio.accountgroups.
AccountGroupsList
(params)¶ Get a list of all account groups used by the specified client.
-
ENDPOINT
= 'openapi/port/v1/accountgroups/'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
(params)¶ Instantiate an AccountGroupsList request.
Parameters: params (dict (required)) – dict with 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.accountgroups.AccountGroupsList(params=params) >>> client.request(r) >>> print(json.dumps(r.response, indent=2))
Output:
{ "Data": [] }
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-