Skip to main content

Liquidation Loan Repay (MARGIN)

Description

Repays the outstanding cross-margin liquidation loan from the user's spot wallet. A liquidation loan represents the account deficit incurred when account equity turns negative during liquidation (bankruptcy). The user must specify the repayment asset and amount. The repayment amount must be greater than 0 and cannot exceed the remaining loan balance.

HTTP Request

POST /sapi/v1/margin/liquidation-loan/repay

Request Weight

100(UID)

Request Parameters

NameTypeMandatoryDescription
assetSTRINGYESThe asset to repay (e.g. USDT, USDC)
amountDECIMALYESRepayment amount, must be greater than 0
recvWindowLONGNOThe value cannot be greater than 60000
timestampLONGYES

Response Example

{
"repayId": 12345678,
"asset": "USDT",
"amount": "300.00000000",
"status": "SUCCESS",
"createTime": 1714492800000
}

Response Parameters

NameTypeDescription
repayIdLONGUnique identifier for this repayment transaction
assetSTRINGAsset used for repayment
amountDECIMALActual repayment amount
statusSTRINGRepayment status: SUCCESS (completed) or PENDING (processing). If the transfer fails, an error is returned directly, no FAILED status will be returned
createTimeLONGUnix timestamp (milliseconds) when the repayment was created