Borrowing
Close Loan
Close a fully repaid loan and return collateral
POST
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Close a fully repaid loan and return collateral
curl -X POST "https://api.trusset.org/lending-stocks/api/positions/{marketId}/close-loan" \
-H "X-API-Key: trusset_your_key_here" \
-H "Content-Type: application/json" \
-d '{"loanId": 5}'
{
"success": true,
"data": { "txHash": "0xabc...def", "loanId": 5 }
}
curl -X POST "https://api.trusset.org/lending-stocks/api/positions/{marketId}/close-loan" \
-H "X-API-Key: trusset_your_key_here" \
-H "Content-Type: application/json" \
-d '{"loanId": 5}'
{
"success": true,
"data": { "txHash": "0xabc...def", "loanId": 5 }
}
curl -X POST "https://api.trusset.org/lending-stocks/api/positions/{marketId}/close-loan" \
-H "X-API-Key: trusset_your_key_here" \
-H "Content-Type: application/json" \
-d '{"loanId": 5}'
{
"success": true,
"data": { "txHash": "0xabc...def", "loanId": 5 }
}
