Create Sub-Account API

This endpoint can be used to create Spot APIs for sub-accounts.

HTTP REQUEST

POST /api/v1/sub/api-key

Example

POST /api/v1/sub/api-key

{
  "code": "200000",
  "data": {
    "subName": "AAAAAAAAAA0007",
    "remark": "remark",
    "apiKey": "630325e0e750870001829864",
    "apiSecret": "110f31fc-61c5-4baf-a29f-3f19a62bbf5d",
    "passphrase": "passphrase",
    "permission": "General",
    "ipWhitelist": "",
    "createdAt": 1661150688000
  }
}
API KEY PERMISSIONS

This endpoint requires the General permission.

REQUEST URL

This endpoint support Spot URL or Futures URL

REQUEST RATE LIMIT

Manage weight:20

PARAMETERS
Param Type Mandatory Description
subName String Yes Sub-account name, create sub account name of API Key.
passphrase String Yes Password(Must contain 7-32 characters. Cannot contain any spaces.)
remark String Yes Remarks(1~24 characters)
permission String No Permissions(Only General、Spot、Futures、Margin、InnerTransfer(Flex Transfer) permissions can be set, such as "General, Trade". The default is "General")
ipWhitelist String No IP whitelist(You may add up to 20 IPs. Use a halfwidth comma to each IP)
expire String No API expiration time; Never expire(default)-1,30Day30,90Day90,180Day180,360Day360
RESPONSES
Param Description
apiKey API-Key
createdAt Time of the event
ipWhitelist IP whitelist
permission Permissions
remark Remarks
subName Sub-account name
apiSecret API secret
passphrase Password