Skip to main content
POST
Withdraws collateral from a loan. Reverts if the withdrawal would push the health factor below 1.0.

Path Parameters

marketId
string
required
Market ID.

Body Parameters

loanId
integer
required
On-chain loan ID.
amount
string
required
Stock tokens to withdraw.
signedPrice
object
Optional EIP-712 signed price.
useRelayer
boolean
default:"false"
Execute via relayer or return calldata.