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

> Retrieve detailed information for a single lending market

Returns full market details including on-chain data, oracle status, configuration status, and liquidation statistics.

## Path Parameters

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

## Response Fields

<ResponseField name="success" type="boolean">Request status</ResponseField>

<ResponseField name="data" type="object">
  Market object with database fields, `onChain` metrics, `oracleStatus`, `configurationStatus`, and `liquidationStats`.
</ResponseField>

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

  ```typescript TypeScript theme={null}
  const res = await fetch(
    `https://api.trusset.org/lending-stocks/api/markets/${marketId}`,
    { headers: { 'X-API-Key': 'trusset_your_key_here' } }
  );
  const { data } = await res.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "id": "clx_market_001",
      "marketAddress": "0x70A0...",
      "stockTokenSymbol": "tAAPL",
      "onChain": {
        "isOnChain": true,
        "totalDeposits": "500000.000000",
        "totalBorrows": "125000.000000",
        "availableLiquidity": "375000.000000",
        "activeLoans": 12,
        "activeAuctions": 0
      },
      "oracleStatus": {
        "price": "185.500000",
        "isStale": false,
        "priceAge": 1200,
        "signerAuthorized": true
      },
      "configurationStatus": {
        "fullyConfigured": true,
        "routerAuthorized": true
      },
      "liquidationStats": {
        "totalLiquidations": 3,
        "pendingLiquidationDebt": "0.000000",
        "totalAuctions": 1
      }
    }
  }
  ```

  ```json Error - Not Found theme={null}
  {
    "success": false,
    "error": {
      "code": "MARKET_NOT_FOUND",
      "message": "Market not found"
    }
  }
  ```
</ResponseExample>
