Skip to main content
GET
/
lending-stocks
/
api
/
markets
/
{marketId}
curl "https://api.trusset.org/lending-stocks/api/markets/{marketId}" \
  -H "X-API-Key: trusset_your_key_here"
{
  "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
    }
  }
}

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.

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

Path Parameters

marketId
string
required
Market ID from your instance.

Response Fields

success
boolean
Request status
data
object
Market object with database fields, onChain metrics, oracleStatus, configurationStatus, and liquidationStats.
curl "https://api.trusset.org/lending-stocks/api/markets/{marketId}" \
  -H "X-API-Key: trusset_your_key_here"
{
  "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
    }
  }
}