添加账户

添加账户

post

添加Apikey

binance配置说明

申请Apikey需要配置的IP白名单 PRE场:103.80.26.250 PRD场:18.163.151.26

Header parameters
companyIdstringRequired

公司ID

Example: {{company}}
tracestringRequired

全局链路唯一标志

Example: {{mock_trace}}
apiKeystringRequired

apiKey

Example: {{apikey}}
recvWindowstringOptional

时间窗口

Example: 5000
signaturestringRequired

签名

Example: {{sign}}
langstringOptional

语言

Example: zh-CN
versionstringRequired

接口版本

Example: 0.0.1
Body
customerNostringRequired

客户编号

exchangeCodestringRequired

交易所代码,币安:binance、OKX:okx、cumberland:cumberland

accountTypestringRequired

账号类型,现货:spot、合约:futures

accountNamestringRequired

账号别名

accountApiKeystringRequired

apiKey(cumberland交易所为cumberland的counterpartyId)

accountSecretKeystringRequired

secretKey(cumberland交易所为cumberland的userId)

passphrasestringOptional

私钥密码,非必填,passphrase

isTestintegerOptional

是否测试账号,0真实账号1测试账号,默认不填写是0

certificatestringOptional

pkcs12格式证书的Bsae16字符串。(cumberland交易所必填)

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