Skip to Content
APIStatisticsGet DeFi TVL Data

Get DeFi TVL Data

1. Overview & Typical Use

Returns TVL (Total Value Locked) statistics for DeFi protocols on the TRON chain and details for each project.

  • Typical use: monitoring TRON DeFi ecosystem TVL changes, analyzing protocol TVL rankings, evaluating DeFi growth trends.
  • When not to use: to query token total value, use “Get Token On-Chain Total Value (TVC)”; for aggregate statistics, use “Get TRON Statistics Overview”.

2. Endpoint & Authentication

GET /api/defiTvl

For Base URL and authentication, see Common Network & Authentication.

3. Request

ParameterTypeRequiredDefaultDescription
typestringNoWhen set to tvlline, the result includes a tvlLine array
startTimeintegerNo7 days agoStart time in seconds
endTimeintegerNoCurrent timeEnd time in seconds
projectstringNoAllSpecific project: SUN, JustLend, JustStable, JustCryptos, or JustSwap
showstringNoWhen set to day, the response additionally returns a tvlLineByDay array

4. Response

Top-level

FieldTypeRequiredDescriptionUnit/Precision
totalnumberRequiredTotal DeFi TVLUSD
tvlLinearrayOptionalTVL trend data (only when type=tvlline), each item contains t (Unix timestamp string in seconds) and v (number, USD)
tvlLineByDayarrayOptionalDaily TVL trend data (only when show=day), each item contains t (Unix timestamp string in seconds) and v (number, USD)
projectsarrayRequiredPer-DeFi project details, see below

projects[] element

FieldTypeRequiredDescriptionUnit/Precision
projectstringRequiredProject name
logostringRequiredProject logo URL
typestringRequiredProject type (e.g. Governance, Lending)
vipstringOptionalWhether it is a VIP project
lockednumberRequiredTVLUSD
urlstringRequiredProject URL
gainnumberRequiredTVL change rateDecimal

5. Errors

For HTTP status codes, see Common Errors. Key points for this endpoint:

  • Empty result is not an error: returns 200 + projects: [] as a normal response.
Last updated on: