Skip to Content
APIDeep AnalysisGet DeFi Pool TVL Change

Get DeFi Pool TVL Change

1. Overview & Typical Use

Returns the historical TVL (total value locked) change for a specific DeFi pool, including per-token liquidity snapshots at each data point.

  • Typical use: draw TVL trend charts for a specific pool.
  • When not to use: to query current pool metrics use “Get DeFi Pool Info” or “Get DeFi Pool Overview”.

2. Endpoint & Authentication

GET /api/stableCoin/pool/change

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

3. Request

ParameterTypeRequiredDefaultDescription
poolstringYes—Pool contract address

4. Response

Top-level

FieldTypeRequiredDescriptionUnit/Precision
countintegerRequiredNumber of data points—
dataarrayRequiredTVL change history—
<tokenAddress>objectOptionalToken metadata (one entry per token in the pool, keyed by contract address or _ for native TRX)—

data[] element

FieldTypeRequiredDescriptionUnit/Precision
timestampintegerRequiredSnapshot timemilliseconds
tvlstringRequiredTotal pool TVL at this timestamp, equal to the sum of token liquidity values in the same snapshotUSD
tokensarrayRequiredPer-token liquidity at this snapshot—

data[].tokens[] element

FieldTypeRequiredDescriptionUnit/Precision
tokenIdstringRequiredToken contract address, or _ for native TRX—
liquiditystringRequiredUSD value of this token’s liquidityUSD
liquidityPercentstringRequiredToken’s share of pool TVL: liquidity / tvl within the same snapshotdecimal ratio (0–1, rounded to 6 decimal places)

<tokenAddress> metadata object

FieldTypeRequiredDescriptionUnit/Precision
tokenAbbrstringRequiredToken abbreviation—
tokenNamestringRequiredToken name—
tokenDecimalintegerRequiredToken decimal precision—

5. Errors

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

  • General error handling rules apply; no special error scenarios.