How can i cancel LOAN ?

Hello guys,

How can i cancel LOAN or quickly REPAY it ?

I have a margin order with 50 USDT LOAN. Then i cancel an order , what would be the best way to cancel it`s loan as well ?

Loan and place order are different endpoints. But i need to synchronize this.

Also order information doesnt provide any information about its loan , do you have any plans to expand order response with loan/repay info ?

Regards,
Ruslan

You could check the borrowed amount of an asset with the following endpoint

‘/sapi/v1/margin/account’

Once you obtain the data, you only make a repay of the amount that you obtained with the following endpoint

‘/sapi/v1/margin/repay’,

1 Like

thanks