subAccountType is a string and can be a symbol-like value for isolated margin, such as AAVE-USDT.UNIFIED in the returned account type where applicable. Do not restrict subAccountType to a fixed enum.curl --location --request GET 'https://api.kucoin.com/api/ua/v2/sub-account/balance?uid=2400011001071395&pageSize=50&lastId=0'{
"code": "200000",
"data": {
"ts": 1785234451817,
"userList": [
{
"uid": 2400011001071395,
"accounts": [
{
"accountType": "SPOT",
"subAccountType": null,
"currencies": [
{
"currency": "USDT",
"equity": null,
"balance": "201",
"available": "201",
"liabilityInterest": null,
"liability": null,
"unrealisedPnl": null,
"liabilityPrincipal": null,
"locked": "0"
}
]
},
{
"accountType": "FUNDING",
"subAccountType": null,
"currencies": [
{
"currency": "USDT",
"equity": null,
"balance": "101",
"available": "101",
"liabilityInterest": null,
"liability": null,
"unrealisedPnl": null,
"liabilityPrincipal": null,
"locked": "0"
}
]
},
{
"accountType": "CROSS",
"subAccountType": null,
"currencies": [
{
"currency": "USDT",
"equity": null,
"balance": "80",
"available": "80",
"liabilityInterest": null,
"liability": null,
"unrealisedPnl": null,
"liabilityPrincipal": null,
"locked": "0"
}
]
},
{
"accountType": "ISOLATED",
"subAccountType": "AAVE-USDT",
"currencies": [
{
"currency": "USDT",
"equity": null,
"balance": "8392",
"available": "8392",
"liabilityInterest": "0",
"liability": null,
"unrealisedPnl": null,
"liabilityPrincipal": "0",
"locked": "0"
}
]
},
{
"accountType": "FUTURES",
"subAccountType": null,
"currencies": [
{
"currency": "USDT",
"equity": "783",
"balance": "783",
"available": "783",
"liabilityInterest": null,
"liability": null,
"unrealisedPnl": null,
"liabilityPrincipal": null,
"locked": "0"
}
]
}
]
}
]
}
}