跳至主要内容

查詢報價單狀態

HTTP 請求

GET /v5/fiat/trade-query

請求參數

參數是否必需類型說明
tradeNostring交易訂單號,tradeNomerchantRequestId 必須提供一個
merchantRequestIdstring自定義請求 ID,tradeNomerchantRequestId 必須提供一個

響應參數

參數類型說明
resultobjectobject
> 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?tradeNo=TradeNo123456 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": "1764558832014",
"subUserId": "123456"
}
}