> ## 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 Market Config

> Retrieve the on-chain market configuration parameters

Returns the current smart contract configuration for a lending market, including collateral factor, liquidation threshold, penalty, fee rates, supply caps, and auction settings.

## Path Parameters

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

## Response Fields

<ResponseField name="data" type="object">
  <Expandable>
    <ResponseField name="collateralFactor" type="string">Max LTV in basis points (e.g. `7500` = 75%)</ResponseField>
    <ResponseField name="liquidationThreshold" type="string">Health factor trigger in basis points</ResponseField>
    <ResponseField name="liquidationPenalty" type="string">Penalty on liquidated debt in basis points</ResponseField>
    <ResponseField name="protocolFeeRate" type="string">Issuer fee rate in basis points</ResponseField>
    <ResponseField name="minBorrowAmount" type="string">Minimum USDC borrow (formatted)</ResponseField>
    <ResponseField name="maxPriceAge" type="string">Maximum oracle price age in seconds</ResponseField>
    <ResponseField name="closeFactor" type="string">Max liquidatable fraction per call in basis points</ResponseField>
    <ResponseField name="useDutchAuction" type="boolean">Whether Dutch auction mode is enabled</ResponseField>
    <ResponseField name="auctionDuration" type="string">Auction duration in seconds</ResponseField>
  </Expandable>
</ResponseField>

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

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "collateralFactor": "7500",
      "liquidationThreshold": "8500",
      "liquidationPenalty": "500",
      "protocolFeeRate": "2500",
      "minBorrowAmount": "100.000000",
      "maxPriceAge": "86400",
      "closeFactor": "5000",
      "maxTotalCollateral": "0.000000000000000000",
      "maxUserCollateral": "0.000000000000000000",
      "useDutchAuction": false,
      "auctionDuration": "3600",
      "auctionStartPremium": "13000",
      "auctionMinPremium": "9500"
    }
  }
  ```
</ResponseExample>
