Skip to main content

Query Liquidation Loan Repay History (USER_DATA)

Description

Query the repayment history of cross-margin liquidation loans (deficit caused by bankruptcy during liquidation). Supports time-range filtering and pagination.

HTTP Request

GET /sapi/v1/margin/liquidation-loan/repay-history

Request Weight

100(UID)

Request Parameters

NameTypeMandatoryDescription
startTimeLONGNOStart time in Unix timestamp (milliseconds). Defaults to 7 days ago if not specified
endTimeLONGNOEnd time in Unix timestamp (milliseconds). Defaults to now if not specified
currentLONGNOCurrent page number, default 1
sizeLONGNOPage size, default 50
recvWindowLONGNOThe value cannot be greater than 60000
timestampLONGYES
  • The maximum query range is 90 days. If startTime is earlier than 90 days ago, it will be clamped to 90 days ago.
  • Only records with status SUCCESS or PENDING are returned. Failed repayment records are excluded.

Response Example

{
"total": 2,
"rows": [
{
"repayId": 12345678,
"asset": "USDC",
"amount": "300.00000000",
"status": "SUCCESS",
"createTime": 1714492800000
},
{
"repayId": 12345679,
"asset": "USDC",
"amount": "200.00000000",
"status": "SUCCESS",
"createTime": 1714579200000
}
]
}

Response Parameters

NameTypeDescription
totalLONGTotal number of repayment records
rowsARRAYList of repayment records
rows[].repayIdLONGUnique identifier for the repayment transaction
rows[].assetSTRINGAsset used for repayment
rows[].amountDECIMALThe repayment amount
rows[].statusSTRINGRepayment status: SUCCESS (completed) or PENDING (processing)
rows[].createTimeLONGUnix timestamp (milliseconds) when the repayment was created