創建Broker子賬戶APIKEY
//請求示例
{
"ipWhitelist": [
"127.0.0.1","8.8.8.8"
],
"label": "broker-account-apikey1",
"passphrase": "Aa12345678",
"permissions": [
"general","spot"
],
"uid": "123456789"
}
//返回示例
{
"code": "200000",
"data": {
"uid": "123456789",
"label": "broker-account-apikey1",
"apiKey": "65b723613e72462802a7439a",
"secretKey": "c59998f5-a50b-4797-8852-bbc7cc538841",
"permissions": [
"General","Spot"
],
"ipWhitelist": [
"10.133.130.189",
"12.1.2.122"
],
"createdAt": 1706500961000
}
}
該接口支持創建Broker子賬戶APIKEY
HTTP請求
POST /api/v1/broker/nd/account/apikey
示例
POST /api/v1/broker/nd/account/apikey
請求URL
此接口支持Broker URL
頻率限制
Broker权重
:3
參數
參數 | 數據類型 | 是否必須 | 含義 |
---|---|---|---|
uid | String | 是 | 子賬戶UID |
passphrase | Integer | 是 | API密碼 |
ipWhitelist | List String | 是 | ip白名單列表,最多支持20個ip |
permissions | List String | 是 | 權限組列表 |
label | String | 是 | apikey備注(長度4~32) |
返回值
字段 | 含義 |
---|---|
uid | 子賬戶UID |
label | apikey備注 |
apiKey | apiKey |
secretKey | secretKey |
permissions | 權限列表(只能設置General、Spot、Futures、Margin、InnerTransfer(萬向劃轉)權限,如:"General,Trade”。) |
ipWhitelist | ip白名單列表 |
createdAt | 創建時間,unix时间戳(毫秒) |