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
| Name | Type | Mandatory | Description |
|---|---|---|---|
| asset | STRING | YES | The asset to repay (e.g. USDT, USDC) |
| amount | DECIMAL | YES | Repayment amount, must be greater than 0 |
| recvWindow | LONG | NO | The value cannot be greater than 60000 |
| timestamp | LONG | YES |
Response Example
{
"repayId": 12345678,
"asset": "USDT",
"amount": "300.00000000",
"status": "SUCCESS",
"createTime": 1714492800000
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| repayId | LONG | Unique identifier for this repayment transaction |
| asset | STRING | Asset used for repayment |
| amount | DECIMAL | Actual repayment amount |
| status | STRING | Repayment status: SUCCESS (completed) or PENDING (processing). If the transfer fails, an error is returned directly, no FAILED status will be returned |
| createTime | LONG | Unix timestamp (milliseconds) when the repayment was created |