跳到主要内容

创建子账户的APIkey

为子账户创建APIkey

请求示例

POST /api/v3/sub-account/apiKey
body
[
{
"subAccount":"subAccount1",
"permissions":"SPOT_ACCOUNT_READ",
"ip":"135.181.193",
"note":"1"
}
]

返回示例

    {
"subAccount": "subAccount1",
"note": "1",
"apiKey": "arg13sdfgs",
"secretKey": "nkjwn21973ihi",
"permissions": "SPOT_ACCOUNT_READ",
"ip": "135.181.193",
"createTime": 1597026383085
}

HTTP请求

  • POST /api/v3/sub-account/apiKey

接口权限要求: 账户读 / SPOT_ACCOUNT_R

权重(IP): 1

请求参数

参数名类型是否必须说明
subAccountstring子账户名称 如:subAccount1
notestringAPIKey的备注
permissionsstringAPIKey权限:
账户读/SPOT_ACCOUNT_READ,
账户写/SPOT_ACCOUNT_WRITE,
现货交易信息读/SPOT_DEAL_READ,
现货交易信息写/SPOT_DEAL_WRITE,
合约账户信息读/CONTRACT_ACCOUNT_READ,
合约账户信息写/CONTRACT_ACCOUNT_WRITE,
合约交易信息读/CONTRACT_DEAL_READ,
合约交易信息写/CONTRACT_DEAL_WRITE,
资金划转读/SPOT_TRANSFER_READ,
资金划转写/SPOT_TRANSFER_WRITE
ipstring绑定ip地址,多个ip用半角逗号隔开,最多支持20个ip。 如:135.181.193
recvWindowlong
timestamplong

返回参数

参数名类型说明
subAccountstring子账户名称
notestringAPIKey的备注
apiKeystringAPI公钥
secretKeystringAPI的私钥
permissionsstringAPIKey权限
ipstringAPIKey绑定的ip地址
createTimelong创建时间