Skip to main content
POST
/
lending-stocks
/
api
/
positions
/
{marketId}
/
remove-liquidity
curl -X POST "https://api.trusset.org/lending-stocks/api/positions/{marketId}/remove-liquidity" \
  -H "X-API-Key: trusset_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"shares": "10000", "useRelayer": true}'
{
  "success": true,
  "data": {
    "txHash": "0xabc...def",
    "sharesRedeemed": "10000"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.trusset.org/llms.txt

Use this file to discover all available pages before exploring further.

Redeems LP shares for USDC at the current share price. Reverts if insufficient liquidity is available (e.g. if most USDC is currently lent out).

Path Parameters

marketId
string
required
Market ID.

Body Parameters

shares
string
required
Number of LP shares to redeem (18-decimal formatted, e.g. "10000").
useRelayer
boolean
default:"false"
Execute via relayer or return calldata.
curl -X POST "https://api.trusset.org/lending-stocks/api/positions/{marketId}/remove-liquidity" \
  -H "X-API-Key: trusset_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"shares": "10000", "useRelayer": true}'
{
  "success": true,
  "data": {
    "txHash": "0xabc...def",
    "sharesRedeemed": "10000"
  }
}