跳至主要内容

查詢幣幣兌換紀錄查詢

獲取幣幣兌換紀錄

HTTP 請求

GET /asset/v2/private/exchange/exchange-order-all

請求參數

參數是否必需類型說明
fromCoinfalsestring兌出幣種. e.g,BTC
toCoinfalsestring兌入幣種. e.g,USDT

響應參數

參數類型說明
totalCountstring返回數據數量
orderarrayObject
> fromCoinstring兌出幣種
> fromAmountstring兌出金額
> toCoinstring兌入幣種
> toAmountstring兌入金額
> exchangeRatestring兌換匯率
> createdTimestring兌換創建時間戳 (秒)
> exchangeTxIdstring兌換訂單號

請求示例

GET /asset/v2/private/exchange/exchange-order-all HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1673079087093
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "OK",
"result": {
"order": [
{
"fromCoin": "ETH",
"fromAmount": "0.10000000",
"toCoin": "XRP",
"toAmount": "372.37487085",
"exchangeRate": "3723.74870857",
"createdTime": "1672989418000",
"exchangeTxId": "251239533285211865273079980032"
},
{
"fromCoin": "BTC",
"fromAmount": "0.10000000",
"toCoin": "ETH",
"toAmount": "1.38586623",
"exchangeRate": "13.85866238",
"createdTime": "1672197760000",
"exchangeTxId": "145102533285208544812654440448"
}
],
"totalCount": "2"
},
"retExtInfo": {},
"time": 1673079089361
}