跳至主要内容

查詢兌換歷史

HTTP 請求

GET /v5/fiat/query-trade-history

請求參數

參數是否必需類型說明
indexfalseinteger頁碼,默認為 1
limitfalseinteger每頁記錄數量,[20-100],默認為 20 條,最大支持 100 條,超過 100 條時返回 100 條
startTimefalsestring查詢開始時間(毫秒級時間戳)
endTimefalsestring查詢結束時間(毫秒級時間戳)

響應參數

參數類型說明
resultarray報價記錄數組
> tradeNostring交易訂單號
> statusstring交易狀態:
  • processing
  • success
  • failed
> quoteTxIdstring報價交易 ID,系統生成,用於確認報價
> exchangeRatestring匯率
> fromCoinstring轉換前的幣種(賣出的幣種)
> fromCoinTypestring轉換前的幣種類型:fiatcrypto
> toCoinstring轉換後的幣種(買入的幣種)
> toCoinTypestring轉換後的幣種類型:fiatcrypto
> fromAmountstring轉換前的幣種數量(賣出數量)
> toAmountstring轉換後的幣種數量(根據匯率買入的數量)
> createdAtstring交易創建時間(毫秒級時間戳)
> subUserIdstring用戶在 Bybit 平台的子用戶 ID

請求示例

GET /v5/fiat/trade-query-history HTTP/1.1  
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1720074159814
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "success",
"result": [
{
"tradeNo": "TradeNo123456",
"status": "success",
"quoteTaxId": "QuoteTaxId123456",
"exchangeRate": "1.0",
"fromCoin": "GEL",
"fromCoinType": "fiat",
"toCoin": "USDT",
"toCoinType": "crypto",
"fromAmount": "100",
"toAmount": "100",
"createdAt": "1764560093588",
"subUserId": "123456"
}
]
}