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

# Get Supply Caps

> Read collateral caps and current usage

Returns the market's global and per-borrower collateral caps alongside the collateral currently locked. Use this before quoting a borrower a size, since a loan that would push total collateral past `maxTotalCollateral` reverts at the contract.

All three values are formatted in the collateral token's own decimals.

## Path Parameters

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

## Response Fields

<ResponseField name="data" type="object">
  <Expandable>
    <ResponseField name="maxTotalCollateral" type="string">Global cap across all borrowers. `0.0` means uncapped.</ResponseField>
    <ResponseField name="maxUserCollateral" type="string">Cap per borrower address. `0.0` means uncapped.</ResponseField>
    <ResponseField name="currentTotalCollateral" type="string">Collateral currently locked in the market.</ResponseField>
  </Expandable>
</ResponseField>

<Note>
  Returns `data: null` if the contract read fails. Both caps are set through [Update Market Config](/endpoints/external-securities-lending/update-config).
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.trusset.org/lending-external-securities/api/markets/{marketId}/supply-caps" \
    -H "X-API-Key: trusset_your_key_here"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "maxTotalCollateral": "50000.000000000000000000",
      "maxUserCollateral": "10000.000000000000000000",
      "currentTotalCollateral": "5000.000000000000000000"
    }
  }
  ```

  ```json Response - Uncapped theme={null}
  {
    "success": true,
    "data": {
      "maxTotalCollateral": "0.0",
      "maxUserCollateral": "0.0",
      "currentTotalCollateral": "5000.000000000000000000"
    }
  }
  ```
</ResponseExample>
