Add account
Add APIkey
binance configuration instructions
Apply for the IP whitelist that Apikey needs to configure PRE field: 103.80.26.250 PRD Field: 18.163.151.26
Header parameters
companyIdstringRequiredExample:
Company ID
{{company}}
tracestringRequiredExample:
Global link unique identifier
{{mock_trace}}
apiKeystringRequiredExample:
apiKey
{{apikey}}
recvWindowstringOptionalExample:
time window
5000
signaturestringRequiredExample:
sign
{{sign}}
langstringOptionalExample:
language
zh-CN
versionstringRequiredExample:
Interface version
0.0.1
Body
customerNostringRequired
Customer number
exchangeCodestringRequired
Exchange code, Binance: binance, OKX: okx, cumberland: cumberland
accountTypestringRequired
Account type, spot: spot, contract: futures
accountNamestringRequired
Account alias
accountApiKeystringRequired
apiKey (cumberland exchange is cumberland's counterpartyId)
accountSecretKeystringRequired
secretKey (cumberland exchange is cumberland’s userId)
passphrasestringOptional
Private key password, optional, passphrase
isTestintegerOptional
Whether to test account, 0 real account 1 test account, default is 0 if not filled in
certificatestringOptional
Bsae16 string of certificate in pkcs12 format. (Required for cumberland exchange)
Responses
200Success
application/json
post
POST /global/customer.admin.CustomerDirectAccAdminApiService.add HTTP/1.1
Host:
companyId: text
trace: text
apiKey: text
signature: text
version: text
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"customerNo": "text",
"exchangeCode": "text",
"accountType": "text",
"accountName": "text",
"accountApiKey": "text",
"accountSecretKey": "text",
"passphrase": "text",
"isTest": 1,
"certificate": "text"
}
200Success
{
"code": "0",
"msg": "Success",
"tm": 38132770,
"trace": "t-cd06-b4650k11-il3so2-r8ix2e9-1651889609",
"ok": true,
"fail": false
}
Last updated