> ## 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.

# Remove Liquidity

> Burn LP shares and withdraw proportional USDC

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

<ParamField path="marketId" type="string" required>Market ID.</ParamField>

## Body Parameters

<ParamField body="shares" type="string" required>Number of LP shares to redeem (18-decimal formatted, e.g. `"10000"`).</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  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"}'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "txHash": "0xabc...def",
      "sharesRedeemed": "10000"
    }
  }
  ```
</ResponseExample>
