Skip to main content

Cancel Redeem

Cancel the withdrawal operation.

HTTP Request

POST /v5/lending/redeem-cancel

Request Parameters

ParameterRequiredTypeComments
coinfalsestringCoin name
orderIdfalsestringThe order ID of redemption
serialNofalsestringSerial no. The customised ID of redemption

Response Parameters

ParameterTypeComments
orderIdstringOrder ID
serialNostringSerial No
updatedTimestringUpdated timestamp (ms)

Request Example

POST /v5/lending/redeem-cancel HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1682048277724
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"coin": "BTC",
"orderId": "1403517113428086272",
"serialNo": null
}

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"orderId": "1403517113428086272",
"serialNo": "linear004",
"updatedTime": "1682048277963"
},
"retExtInfo": {},
"time": 1682048278001
}