Request list of Account Groups
AccountGroupsRequest
To retrieve the list of account groups associated with the user. This is used as a parameter for order request.
Request
Field | Req'd | Type | Description |
---|---|---|---|
messageType | Y | String | accountGroups |
Example:
{
"messageType": "accountGroups"
}
{
"chanId": "",
"timestamp": 1728374758421,
"messageType": "accountGroups",
"message": "",
"code": "",
"accountGroups": [
{
"uuid": "dcbb114e-8dfe-4eb8-9a6a-f267b4980b34",
"name": "Default"
},
{
"uuid": "7f6d661d-f45f-4dde-8333-749c709a724e",
"name": "Subaccount_1"
}
]
}
Response
AccountGroupsResponse
Field | Req'd | Type | Description |
---|---|---|---|
chainId | N | String | For future use |
timestamp | Y | Long | Unix time in milliseconds |
messageType | Y | String | accountGroups |
message | Y | String | Confirmation message |
code | Y | String | Error code |
accountGroups | N | String | Account groups list |
uuid | Y | String | Account group uuid |
name | Y | String | Account group name |
Response Example: