Skip to main content

Get Coin Exchange Records

Query the coin exchange records.

caution

You may have a long delay of this endpoint.

HTTP Request

GET /v5/asset/exchange/order-record

Request Parameters

ParameterRequiredTypeComments
fromCoinfalsestringThe currency to convert from. e.g,BTC
toCoinfalsestringThe currency to convert to. e.g,USDT
limitfalseintegerLimit for data size per page. [1, 50]. Default: 10
cursorfalsestringCursor. Used for pagination

Response Parameters

ParameterTypeComments
nextPageCursorstringCursor. Used for pagination
orderBodyarrayObject
> fromCoinstringThe currency to convert from
> fromAmountstringThe amount to convert from
> toCoinstringThe currency to convert to
> toAmountstringThe amount to convert to
> exchangeRatestringExchange rate
> createdTimestringExchange created timestamp (sec)
> exchangeTxIdstringExchange transaction ID

Request Example

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

Response Example

{
"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
}