Skip to main content

Create Sub Account APIKey

Create Sub Account APIKey

Create an APIKey for a specified sub-account.

Request frequency limit: 5/s, 150/min

Request URL

POST /deepcoin/sub-account/sub-account-apikey

Request Parameters

Field NameRequiredTypeDescription
subAccttruestringSub-account name
labeltruestringAPIKey label
passphrasetruestringAPIKey passphrase
permtruestringPermissions separated by commas. Supported values: read_only, trade, rebate, copy_trade
ipfalsestringBound IP addresses separated by commas. Maximum 20 IPs

ip can be omitted. label must be unique under the same sub-account.

Request Example

{
"subAcct": "demo_sub_account",
"label": "demo api key",
"passphrase": "Demo@123456",
"perm": "read_only,trade"
}

Response Parameters

secretKey is returned only in the first successful create response. Store it securely; it cannot be retrieved again later.

Field NameTypeDescription
subAcctstringSub-account name
labelstringAPIKey label
apiKeystringAPIKey
secretKeystringSecretKey
passphrasestringAPIKey passphrase
permstringAPIKey permissions
ipstringBound IP addresses
createTimeint64Create time in milliseconds

Response Example

{
"code": 0,
"msg": "success",
"data": {
"subAcct": "demo_sub_account",
"label": "demo api key",
"apiKey": "ed5c28e6-5b90-417d-91eb-f22053c05842",
"secretKey": "8137B768302A550D6DBD5AD367AC65F3",
"passphrase": "Demo@123456",
"perm": "read_only,trade",
"createTime": 1782871200000
}
}