跳至主要内容

查詢兌換訂單紀錄

警告

您可能會遭遇較長的數據返回延遲

HTTP 請求

GET /v5/asset/exchange/order-record

請求參數

參數是否必需類型說明
fromCoinfalsestring兌出幣種. e.g,BTC
toCoinfalsestring兌入幣種. e.g,USDT
limitfalseinteger每頁數量限制. [1, 50]. 默認: 10
cursorfalsestring游標,用於翻頁

響應參數

參數類型說明
nextPageCursorstring游標,用於翻頁
orderBodyarrayObject
> fromCoinstring兌出幣種
> fromAmountstring兌出金額
> toCoinstring兌入幣種
> toAmountstring兌入金額
> exchangeRatestring兌換匯率
> createdTimestring兌換創建時間戳 (秒)
> exchangeTxIdstring兌換訂單號

請求示例

GET /v5/asset/exchange/order-record?limit=10 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672990462492
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "OK",
"result": {
"orderBody": [
{
"fromCoin": "BTC",
"fromAmount": "0.100000000000000000",
"toCoin": "ETH",
"toAmount": "1.385866230000000000",
"exchangeRate": "13.858662380000000000",
"createdTime": "1672197760",
"exchangeTxId": "145102533285208544812654440448"
}
],
"nextPageCursor": "173341:1672197760"
},
"retExtInfo": {},
"time": 1672990464021
}