跳到主要内容

统一划转

统一划转

账户间资金划转,按 type 区分类型。整合同 UID 账户间划转、UID 间划转和子母账号划转接口。

请求地址

POST /deepcoin/v2/asset/unified-transfer

通用请求参数

字段名是否必填类型字段描述
typestring划转类型:internal / uid / subaccount
ccystring币种
amtstring金额
clientIdstring客户端幂等 ID
internalobjecttype=internal 时必填,同 UID 账户间划转参数
uidobjecttype=uid 时必填,UID 间划转参数
subaccountobjecttype=subaccount 时必填,子母账号划转参数

type=internal(同 UID 账户间划转)

internal 参数:

字段名是否必填类型字段描述
uidint64用户 UID,必须与 API Key 所属用户一致
fromAcctTypeint转出账户类型:1=现货 2=钱包 3=返佣 5=反向合约 7=正向合约 10=体验金
toAcctTypeint转入账户类型,枚举同上

请求示例:

{
"type": "internal",
"ccy": "USDT",
"amt": "100",
"clientId": "transfer_20260528_001",
"internal": {
"uid": 36020176,
"fromAcctType": 7,
"toAcctType": 1
}
}

type=uid(UID 间划转)

需要添加转账 UID 到地址簿。

uid 参数:

字段名是否必填类型字段描述
fromint64转出 UID,必须与 API Key 所属用户一致
toint64转入 UID
receiverAccountstring收款账户
receiverAccountTypestring收款账户类型:email / phone

请求示例:

{
"type": "uid",
"ccy": "USDT",
"amt": "100",
"clientId": "transfer_20260528_002",
"uid": {
"from": 36023126,
"to": 36023127,
"receiverAccount": "user@example.com"
}
}

type=subaccount(子母账号划转)

subaccount 参数:

字段名是否必填类型字段描述
fromstring转出 UID
tostring转入 UID
fromAcctTypestring转出账户类型
toAcctTypestring转入账户类型

请求示例:

{
"type": "subaccount",
"ccy": "USDT",
"amt": "100",
"clientId": "transfer_20260528_003",
"subaccount": {
"from": "36023126",
"to": "36023128",
"fromAcctType": "7",
"toAcctType": "1"
}
}

响应参数

字段名类型字段描述
transferIdstring划转 ID
clientIdstring客户端幂等 ID
statusstring划转状态
cTimestring创建时间

响应示例

{
"transferId": "40ce50f2-a96d-4efc-8168-148fd82df25f",
"clientId": "transfer_20260528_001",
"status": "success",
"cTime": "1739263130000"
}