Links
Comment on page

单一币种账户余额

1. 接口调用:
https://{host}/marketApi/accountsByCode/{coinCode}
2. 请求参数实例
参数
是否必须
说明
channelId
渠道id
timestamp
毫秒时间戳(UTC+8)
sign
签名
3.请求参数示例
{
"channelId":"swft-channel",
"sign":"102027D292DD0707E0D899459D91C759858D7367D223CB239A8EC3A90C30B122",
"timestamp":"1557653925555"
}
4.返回结果示例
{
"data":{
"coinCode":"BTC",
"availableAmount":"1.46",
"freezeAmount":"0"
},
"resCode": "800",
"resMsg": "成功"
}
5.返回参数说明
字段名称
是否数组
字段
数据类型
数据长度
必须项
备注
币种简称
Y
coinCode
String
20
Y
eg: BTC
币种可用余额
Y
availableAmount
String
30
Y
eg: 1.46
币种冻结余额
Y
freezeAmount
String
30
Y
eg: 0.01