Skip to main content

Get Order Records

Get lending or redeem history

HTTP Request

GET /v5/lending/history-order

Request Parameters

ParameterRequiredTypeComments
coinfalsestringCoin name
orderIdfalsestringOrder ID
startTimefalselongThe start timestamp (ms)
endTimefalselongThe end timestamp (ms)
limitfalseintegerLimit for data size per page. [1, 500]. Default: 50
orderTypefalsestringOrder type. 1: deposit, 2: redemption, 3: Payment of proceeds

Response Parameters

ParameterTypeComments
listarrayObject
> coinstringCoin name
> createdTimestringCreated timestamp (ms)
> orderIdstringOrder ID
> quantitystringquantity
> serialNostringSerial No
> statusstringOrder status. 0: Initial, 1: Processing, 2: Success, 10: Failed, 11: Cancelled
> updatedTimestringUpdated timestamp (ms)

Request Example

GET /v5/lending/history-order?orderNo=1403517113428086272 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: 9pXyrhxTlXXXXXaVQGSaP3n
X-BAPI-TIMESTAMP: 1682049395799
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"coin": "BTC",
"createdTime": "1682048277963",
"orderId": "1403517113428086272",
"orderType": "2",
"quantity": "0.1",
"serialNo": "14035171132183710722373",
"status": "2",
"updatedTime": "1682048278245"
}
]
},
"retExtInfo": {},
"time": 1682049395967
}