Sub Accounts
Sub Accounts
Create Sub-account
Rate limit: 10/sec/UID
This API is used for the main account to create a sub-account. It only supports creating unified account virtual sub-accounts and does not support creating regular sub-accounts.
Unified account management read and write permissions are required
Only the main account can call this API
Create Sub-account › Request Parameters
usernameGenerate a virtual email address username. It can only contain lowercase letters and cannot exceed 20 characters.
accountModeSub-account Mode
classic Classic Account Sub-account
unified Unified Account Sub-account
noteNote, cannot exceed 50 characters.
Create Sub-account › Response Parameters
Successful response
codemsgrequestTimeusernameVirtual Email Address
subUidVirtual Sub-account ID
statusAccount Status
normal Normal
noteNote
createdTimeCreation Time, Unix Millisecond Timestamp
updatedTimeLast Modified Time, Unix Millisecond Timestamp
Freeze/Unfreeze Sub-account
Rate limit: 10/sec/UID
Freeze/Unfreeze Sub-account.
Unified account management read and write permissions are required
Only the main account can call this API
Freeze/Unfreeze Sub-account › Request Parameters
subUidSub-account ID to be frozen/unfrozen
operationOperation Type
freeze Freeze
unfreeze Unfreeze
Freeze/Unfreeze Sub-account › Response Parameters
Successful response
codemsgrequestTimedataNo response fields
Get Sub-account List
Rate limit: 10/sec/UID
Query Sub-account List.
Unified account management read permissions are required
Only the main account can call this API
Request Parameters
limitItems per page The default value is 100, and the maximum value is 100.
cursorCursor ID Used for pagination. Do not pass it for the first query. For subsequent queries (second page and beyond), use the cursor returned from the previous query.
Get Sub-account List › Response Parameters
Successful response
codemsgrequestTimeSub-account List
hasNextIs there more data on the next page
cursorCursor ID
Get Sub-account Unified Assets
Rate limit: 1/sec/UID
Get Sub-account Unified Assets.
Unified account management read permissions are required
Request Parameters
subUidSub-account UID Leave blank to return all sub-account asset lists
cursorCursor ID For pagination. Omit in first request. Pass previous cursor in subsequent requests.
limitSub-accounts per Page Default value is 10, maximum is 50.
Get Sub-account Unified Assets › Response Parameters
Successful response
codemsgrequestTimeSub-account asset list
subUidSub-account UID
cursorCursor ID
List of account coins
Create Sub-account API Key
Rate limit: 10/sec/UID
This API is used to create an API Key for a sub-account under a unified account. It is applicable when the main account is in a mix or unified account mode. If the current main account is in the classic account mode, this API cannot be called.
Currently, only the creation of virtual sub-accounts is supported.
Unified account management read and write permissions are required
Only the main account can call this API
Create Sub-account API Key › Request Parameters
subUidSub-account ID
noteNote Name The note needs to start with a letter and supports [0-9], [a-z], [A-Z], as well as [-,_]
typePermission Type
read_write Read/Write
read_only Read-only
passphrasepassphrase A combination of 8 to 32 characters of letters and numbers
permissionsPermission values
Unified Account Permissions:
uta_mgt Unified Account Management
uta_trade Unified Account Trading
ipsWithdrawal Whitelist IP Multiple IP addresses are supported A maximum of 30 IPs can be bound to a single key Only supports IPv4
Create Sub-account API Key › Response Parameters
Successful response
codemsgrequestTimenoteNote
apiKeySub-account API Key
secretSub-account API Secret
typeSub-account API Key Permission Type
read_write Read/Write
read_only Read-only
permissionsSub-account API Key Permission Values
Unified Account Permissions:
uta_mgt Unified Account Management
uta_trade Unified Account Trading
ipsWithdrawal Whitelist IP
Modify Sub-account API Key
Rate limit: 10/sec/UID
This API is used to modify the unified account sub-account API Key permissions and withdrawal whitelist IP addresses. It only supports modifying the API Key of a unified account sub-account and does not support creating an API Key for a classic account sub-account.
Unified account management read and write permissions are required
Only the main account can call this API
Modify Sub-account API Key › Request Parameters
apiKeySub-account API Key
passphrasepassphrase A combination of 8 to 32 characters of letters and numbers
typePermission Type
read_write Read/Write
read_only Read-only
This parameter is required when permissions has a value.
permissionsPermission values
Unified Account Permissions:
uta_mgt Unified Account Management
uta_trade Unified Account Trading
This parameter is required when type has a value.
ipsWhitelist IP If not provided, the IP address will not be modified. If an empty value is provided, the IP whitelist will be deleted. Multiple IP addresses are supported A maximum of 30 IPs can be bound to a single key Only supports IPv4
Modify Sub-account API Key › Response Parameters
Successful response
codemsgrequestTimeapiKeySub-account API Key
noteNote name
typeSub-account API Key Permission Type
read_write Read/Write
read_only Read-only
permissionsSub-account API Key Permission Values
Unified Account Permissions:
uta_mgt Unified Account Management
uta_trade Unified Account Trading
ipsWhitelist IP
Delete Sub-account API Key
Rate limit: 10/sec/UID
This API is used for the main account to delete a sub-account's API Key. It is not applicable for the main account or sub-account to delete their own API Key.
Please note that once the deletion is completed, the sub-account API Key will be immediately invalid. Before performing the deletion, ensure that this operation will not cause any loss.
This API only supports deleting API Keys of sub-accounts under a unified account, and does not support deleting API Keys of sub-accounts under a classic account.
Unified account management read and write permissions are required
Only the main account can call this API
Delete Sub-account API Key › Request Parameters
apikeyThe sub-account API Key
Delete Sub-account API Key › Response Parameters
Successful response
codemsgrequestTimedataNo response fields
Get Sub-account API Keys
Rate limit: 10/sec/UID
Supports querying the full API Key list under a single sub-account.
Unified account management read permissions are required
Only the main account can call this API
Request Parameters
subUidSub-account UID
limitItems per page The default value is 100, and the maximum value is 100.
cursorCursor ID Used for pagination. Do not pass it for the first query. For subsequent queries (second page and beyond), use the cursor returned from the previous query.
Get Sub-account API Keys › Response Parameters
Successful response
codemsgrequestTimeSub-account API Key List
hasNextIs there more data on the next page
cursorCursor ID
Create Agent Sub-account
Rate limit: 1/sec/UID
Create a dedicated sub-account for an AI Agent instance. Agent sub-accounts are not editable after creation (name, permissions, and other configurations cannot be modified). Each main account shares the total sub-account quota with regular sub-accounts.
Permission: Unified account management (read and write)
Only the main account can call this API
Create Agent Sub-account › Request Parameters
usernameUsername used to generate the virtual email address. Only lowercase letters are allowed; maximum 20 characters
passphraseAPI key passphrase. Must be 8-32 characters, consisting of letters and numbers
noteSub-account note
Create Agent Sub-account › Response Parameters
Successful response
codemsgrequestTimeusernameAgent sub-account username
subUidAgent sub-account ID
apiKeyAgent sub-account API key
secretAgent sub-account secret
noteNote
createdTimeCreation time, Unix millisecond timestamp
