跳至主要内容

獲取兌換記錄

信息
  • API密鑰權限: Convert
  • API速率限制: 10 req /s
  • 您可以查詢通過API或網頁/應用程序在統一錢包和資金錢包中進行的小額資產兌換記錄。

HTTP 請求

GET /v5/asset/covert/small-balance-history

請求參數

參數是否必需類型說明
accountTypefalsestringeb_convert_uta, eb_convert_funding
quoteIdfalsestring報價ID,查詢時優先級最高
startTimefalsestring起始時間戳(毫秒)
endTimefalsestring結束時間戳(毫秒)
cursorfalsestring頁碼
sizefalsestring每頁大小,默認為50,最大為100

響應參數

參數類型說明
cursorstring當前頁碼
sizestring當前頁大小
lastPagestring最後一頁頁碼
totalCountstring記錄總數
recordsarray<object>
> accountTypestringeb_convert_uta: 統一錢包, eb_convert_funding: 資金錢包
> exchangeTxIdstring兌換交易ID
> toCoinstring目標幣種
> toAmountstring實際接收的總金額
> subRecordsarray<object>詳細信息
>> fromCoinstring源幣種
>> fromAmountstring源幣種金額
>> toCoinstring目標幣種
>> toAmountstring實際接收金額
>> feeCoinstring兌換手續費幣種
>> feeAmountstring兌換手續費金額
>> statusstringinit, processing, success, failure, partial_fulfillment
>> taxFeeInfoobject
>>> totalAmountstring稅費金額
>>> feeCoinstring稅費幣種
>>> taxFeeItemsarray稅費項目
> statusstringinit, processing, success, failure, partial_fulfillment
> createdAtstring報價創建時間戳
> exchangeSourcestring兌換來源 small_asset_uta, small_asset_funding
> feeCoinstring兌換手續費幣種
> totalFeeAmountstring兌換手續費總金額
> totalTaxFeeInfoobject
>> totalAmountstring稅費總金額
>> feeCoinstring稅費幣種
>> taxFeeItemsarray稅費項目

請求示例

GET /v5/asset/covert/small-balance-history?quoteId=1010075157602517596339322880&accountType=eb_convert_uta HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1766134218672
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "ok",
"result": {
"cursor": "1",
"size": "50",
"lastPage": "1",
"totalCount": "1",
"records": [
{
"accountType": "eb_convert_uta",
"exchangeTxId": "1010075157602517596339322880",
"toCoin": "USDC",
"toAmount": "0.000728325793503221",
"subRecords": [
{
"fromCoin": "SOL",
"fromAmount": "0.000003",
"toCoin": "USDC",
"toAmount": "0.000363439538230885",
"feeCoin": "USDC",
"feeAmount": "0.000007417133433283",
"status": "success",
"taxFeeInfo": {
"totalAmount": "0",
"feeCoin": "",
"taxFeeItems": []
}
},
{
"fromCoin": "XRP",
"fromAmount": "0.0002",
"toCoin": "USDC",
"toAmount": "0.000364886255272336",
"feeCoin": "USDC",
"feeAmount": "0.000007446658270864",
"status": "success",
"taxFeeInfo": {
"totalAmount": "0",
"feeCoin": "",
"taxFeeItems": []
}
}
],
"status": "success",
"createdAt": "1766128195000",
"exchangeSource": "small_asset_uta",
"feeCoin": "USDC",
"totalFeeAmount": "0.000014863791704147",
"totalTaxFeeInfo": {
"totalAmount": "0",
"feeCoin": "",
"taxFeeItems": []
}
}
]
},
"retExtInfo": {},
"time": 1766129394948
}