帳戶接口
取得帳戶資產
HTTP 請求 取得帳戶資產
- GET
/api/v2/account/assets
限速規則:10 次/ 1s
請求參數
NONE
請求範例
curl "https://api-spot.weex.com/api/v2/account/assets" \
-H "ACCESS-KEY:" \
-H "ACCESS-SIGN:" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json"
傳回參數
欄位名 | 類型 | 欄位說明 |
---|---|---|
coinId | Integer | 幣種 id |
coinName | String | 幣種名稱 |
available | String | 可用資產 |
frozen | String | 凍結資產 |
equity | String | 全部資產 |
傳回範例
{
"code": "00000",
"msg": "success",
"requestTime": 1743729400189,
"data": [{
"coinId": 1,
"coinName": "BTC",
"available": "0.0040000000000000",
"frozen": "0",
"equity": "0.0040000000000000"
}, {
"coinId": 2,
"coinName": "USDT",
"available": "10000999657.8927028500000000",
"frozen": "0",
"equity": "10000999657.8927028500000000"
}]
}
取得帳單流水
HTTP 請求 取得帳單流水
- POST
/api/v2/account/bills
限速規則:10次/ 1s
請求參數
參數名 | 參數類型 | 是否必須 | 描述 |
---|---|---|---|
coinId | Integer | 否 | 幣種 ID |
bizType | String | 否 | 業務類型 deposit 儲值 withdraw 提現 transfer_in 轉入 transfer_out 轉出 trade_in 買入資產 trade_out 賣出資產 order_fill_fee_income 手續費收入 order_liquidate_fee_income 清算手續費收入 |
after | String | 否 | 開始時間之後創建的流水 |
before | String | 否 | 開始時間之前創建的流水 |
limit | Integer | 否 | 返回結果的數量,默認10,最大100 |
請求範例
curl -X POST "https://api-spot.weex.com/api/v2/account/bills?coinId=22" \
-H "ACCESS-KEY:" \
-H "ACCESS-SIGN:" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"coinId": 1}'
傳回參數
欄位名 | 類型 | 欄位說明 |
---|---|---|
billId | String | 帳單 ID |
coinId | Integer | 幣種 ID |
coinName | String | 幣種名稱 |
bizType | String | 流水帳單業務類型 |
fillSize | String | 成交數量 |
fillValue | String | 成交價值 |
deltaAmount | String | 餘額變動數量 |
afterAmount | String | 變動後的餘額數量 |
fees | String | 手續費 |
cTime | String | 創建時間 |
傳回範例
{
"code": "00000",
"msg": "success",
"requestTime": 1743732387987,
"data": [{
"billId": "601797854712824762",
"coinId": 1,
"coinName": "BTC",
"bizType": "transfer_in",
"fillSize": "0",
"fillValue": "0",
"deltaAmount": "0.0040000000000000",
"afterAmount": "0.0040000000000000",
"fees": "0",
"cTime": "1743479789427"
}]
}
取得劃轉記錄
HTTP 請求
- GET
/api/v2/account/transferRecords
限速規則:10 次/ 1s
請求參數
參數名 | 參數類型 | 是否必須 | 描述 |
---|---|---|---|
coinId | Integer | 否 | 幣種 ID |
fromType | String | 否 | 帳單類型accountType |
after | Long | 否 | 轉入tradeTime,在該tradeTime之前的數據 |
before | Long | 否 | 轉入tradeTime,在該tradeTime之後的數據 |
limit | Integer | 否 | 返回結果的數量,默認100,最大500 |
請求範例
curl "https://api-spot.weex.com/api/v2/account/transferRecords?coinId=22" \
-H "ACCESS-KEY:" \
-H "ACCESS-SIGN:" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json"
傳回參數
欄位名 | 欄位說明 |
---|---|
coinName | 幣種名稱 |
status | 劃轉狀態 |
toType | 轉入帳戶類型 accountType |
toSymbol | 轉入帳戶交易對 |
fromType | 轉出帳戶類型 accountType |
fromSymbol | 轉出帳戶交易對 |
amount | 數量 |
tradeTime | 交易時間 (毫秒時間戳) |
傳回範例
{
“code”:”00000″,
“data”:[
{
“coinName”:”btc”,
“status”:”SUCCESS”,
“toType”:”USD_MIX”,
“toSymbol”:””,
“fromType”:”CONTRACT”,
“fromSymbol”:”BTC/USD”,
“amount”:”1000.00000000″,
“tradeTime”:”1631070374488″
}
],
“msg”:”success”,
“requestTime”:1631608142260
}
WEEX唯客官網:www.weex.com
你也可以在 CMC| Coingecko|非小號|X(Twitter)|Youtube|Facebook|Linkedin|微博 上關注我们,第一时间获取更多投資導航和福利活動!了解平台幣 WXT 最新資訊請訪問 WXT專區
在線諮詢:
WEEX唯客中文交流群:https://t.me/weex_group
WEEX唯客英文交流群:https://t.me/Weex_Global