Get Account Balance
1. Request Url
https://{host}/marketApi/accounts
2. Request Param
Parameter name
Is it necessary
description
channelId
Y
Channel number
timestamp
Y
Millisecond timestamp(UTC+8)
3.Request Example
1
{
2
"channelId":"swft-channel",
3
"sign":"102027D292DD0707E0D899459D91C759858D7367D223CB239A8EC3A90C30B122",
4
"timestamp":"1557653925555"
5
}
Copied!
4.Response Data
1
{
2
"data":[
3
{
4
"coinCode":"SWFTC",
5
"availableAmount":"1022375.469017",
6
"freezeAmount":"0"
7
},
8
{
9
"coinCode":"BTC",
10
"availableAmount":"1.469017",
11
"freezeAmount":"0"
12
},
13
{
14
"coinCode":"ETH",
15
"availableAmount":"10.153343",
16
"freezeAmount":"0"
17
}
18
],
19
"resCode": "800",
20
"resMsg": "Success"
21
}
Copied!
5.Response Data Explanation
Parameter name
Is it necessary
Type of data
description
remark
coinCode
Y
String
Currency Code
eg: BTC
availableAmount
Y
String
Available Balance
eg: 1.46
freezeAmount
Y
String
Freeze Balance
eg: 0.01
Last modified 2yr ago
Copy link