Skip to main content

Risk Unit Repay(TRADE)

API Description

This endpoint is used to perform full or partial repayment of the specified risk unit. This endpoint is accessible only with the credit account API key.

HTTP Request

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

Request Weight

3000(UID)

Request Parameters

NameTypeMandatoryDescription
groupIdLONGYESRisk unit unique identifier
assetNameSTRINGYESAsset Name , USDT or USDC
amountDECIMALYESThe real repaid amount = min(available amount in account, input repay amount)

Response Example

{

"transactionId": 12317283617,

"amount": 123456.78

}

Response detail desc

ParameterTypeDescription
transactionIdSTRINGTransaction ID
amountDECIMALThe amount that has been repaid