查詢幣幣兌換紀錄查詢
獲取幣幣兌換紀錄
HTTP 請求
GET /asset/v2/private/exchange/exchange-order-all
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
fromCoin | false | string | 兌出幣種. e.g,BTC |
toCoin | false | string | 兌入幣種. e.g,USDT |
響應參數
參數 | 類型 | 說明 |
---|---|---|
totalCount | string | 返回數據數量 |
order | array | Object |
> fromCoin | string | 兌出幣種 |
> fromAmount | string | 兌出金額 |
> toCoin | string | 兌入幣種 |
> toAmount | string | 兌入金額 |
> exchangeRate | string | 兌換匯率 |
> createdTime | string | 兌換創建時間戳 (秒) |
> exchangeTxId | string | 兌換訂單號 |
請求示例
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
}