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

FieldReq'dTypeDescription
messageTypeYStringaccountGroups

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

FieldReq'dTypeDescription
chainIdNStringFor future use
timestampYLongUnix time in milliseconds
messageTypeYStringaccountGroups
messageYStringConfirmation message
codeYStringError code
accountGroupsNStringAccount groups list
uuidYStringAccount group uuid
nameYStringAccount group name

Response Example: