Modify Sub-Account API

This endpoint can be used to modify sub-account Spot APIs.

HTTP REQUEST

POST /api/v1/sub/api-key/update

Example

POST /api/v1/sub/api-key/update

{
  "code": "200000",
  "data": {
    "subName": "AAAAAAAAAA0007",
    "apiKey": "630329b4e7508700018298c5",
    "permission": "General",
    "ipWhitelist": "127.0.0.1"
  }
}
API KEY PERMISSIONS

This endpoint requires the General permission.

REQUEST URL

This endpoint support Spot URL or Futures URL

REQUEST RATE LIMIT

Manage weight:30

PARAMETERS
Param Type Mandatory Description
subName String Yes Sub-account name
apiKey String Yes API-Key(Sub-account APIKey)
passphrase String Yes Password of API key
permission String No Permissions list(Only General、Spot、Futures、Margin、InnerTransfer(Flex Transfer) permissions can be set, such as "General, Trade". If modified, permissions will be reset.
ipWhitelist String No IP whitelist(you may add up to 20 IPs. Use a halfwidth comma to each IP.If modified, the IP will be reset.)
expire String No API expiration time; Never expire(default)-1,30Day30,90Day90,180Day180,360Day360
RESPONSES
Param Description
apiKey API-Key
ipWhitelist IP whitelist
permission Permissions
subName Sub-account name