Skip to main content
6 tables in this category.

Tables

  • agent.ethereum_lending_daily
  • agent.ethereum_prices_day

Sample Queries

1. Top protocols by TVL

2. Top protocols by daily fees

3. Top yielding pools today

Table Schemas

agent.ethereum_tvl_daily

Protocol-level daily Total Value Locked aggregated across all pools and strategies. One row per (project, version, block_date). Priced using CoinGecko daily prices. Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: project, version, block_date
  • tvl_usd is the protocol-level total — individual pool/token breakdowns are in upstream models
  • TVL uses CoinGecko-only pricing. Unpriced tokens create gaps (see known_gaps below)
  • For total chain TVL: SELECT block_date, sum(tvl_usd) FROM ethereum_tvl_daily GROUP BY block_date
  • Cross-reference with fees_daily and yields_daily for protocol profitability analysis
  • CoinGecko-only pricing — tokens not listed on CoinGecko are valued at $0
  • Known gaps: Maverick V1 (~14% undercount), KyberSwap Elastic (~111% overcount, dead protocol)
  • Borrow-side balances excluded — this is supply-side TVL only
  • New protocols require manual model creation before appearing

agent.base_tvl_daily

Protocol-level daily Total Value Locked aggregated across all pools and strategies. One row per (project, version, block_date). Priced using CoinGecko daily prices. Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: project, version, block_date
  • tvl_usd is the protocol-level total — individual pool/token breakdowns are in upstream models
  • TVL uses CoinGecko-only pricing. Unpriced tokens create gaps (see known_gaps below)
  • For total chain TVL: SELECT block_date, sum(tvl_usd) FROM ethereum_tvl_daily GROUP BY block_date
  • Cross-reference with fees_daily and yields_daily for protocol profitability analysis
  • CoinGecko-only pricing — tokens not listed on CoinGecko are valued at $0
  • Known gaps: Maverick V1 (~14% undercount), KyberSwap Elastic (~111% overcount, dead protocol)
  • Borrow-side balances excluded — this is supply-side TVL only
  • New protocols require manual model creation before appearing

agent.arbitrum_tvl_daily

Protocol-level daily Total Value Locked aggregated across all pools and strategies. One row per (project, version, block_date). Priced using CoinGecko daily prices. Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: project, version, block_date
  • This table was recently added and may have zero or very few rows initially
  • Check SELECT count() and max(block_date) before building queries against it
  • Newly added — may have incomplete protocol coverage or zero rows
  • Same CoinGecko-only pricing limitations as Ethereum TVL

agent.tron_tvl_daily

Protocol-level daily Total Value Locked aggregated across all pools and strategies. One row per (project, version, block_date). Priced using CoinGecko daily prices. Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: project, version, block_date
  • Smaller coverage than Ethereum — fewer protocols indexed on Tron
  • JustLend is the dominant lending protocol on Tron
  • CoinGecko-only pricing — tokens not listed on CoinGecko are valued at $0
  • Known gaps: Maverick V1 (~14% undercount), KyberSwap Elastic (~111% overcount, dead protocol)
  • Borrow-side balances excluded — this is supply-side TVL only
  • New protocols require manual model creation before appearing

agent.ethereum_fees_daily

Protocol-level daily fee and revenue metrics following the DefiLlama 6-field standard. Aggregated from 35+ individual protocol fee models. One row per (project, version, block_date). Covers DEX trading fees, lending interest, staking commissions, and yield protocol fees. Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: project, version, block_date
  • daily_fees_usd = total fees generated (user_fees + protocol_revenue + supply_side)
  • daily_revenue_usd = protocol_revenue + holders_revenue (excludes supply-side)
  • daily_supply_side_revenue_usd = fees earned by LPs/lenders/stakers
  • Filter by project for protocol-specific analysis (e.g., project=‘uniswap’)
  • Cross-reference with tvl_daily for fee/TVL ratio (protocol efficiency)
  • Coverage depends on individual protocol models — not every DeFi protocol is included
  • Fee calculations use on-chain events + CoinGecko pricing — same price gaps as TVL
  • Some protocol fees (off-chain, governance-voted distributions) may not be captured

agent.ethereum_yields_daily

Pool-level daily yield and APY data across 37 Ethereum DeFi protocols. One row per (project, version, pool_address, token_address, block_date). Includes base APY, reward APY, borrow rates, TVL, impermanent loss metrics, and 7d/30d rolling statistics. Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: project, version, block_date
  • Filter by stablecoin=1 for stablecoin-only yield analysis
  • apy is the headline rate (base + reward). apy_base is organic, apy_reward is incentivized
  • Use apy_mean_30d for smoothed comparison — daily apy can be volatile
  • tvl_usd gives pool-level TVL context for the yield — low TVL + high APY = risky
  • il_risk column flags pools with impermanent loss exposure
  • apy_base_borrow and apy_reward_borrow are lending market borrow-side rates
  • APY calculations vary by protocol — some use trailing 7d fees, others use instantaneous rates
  • Reward APY depends on token prices — can swing wildly with governance token volatility
  • Not all pools are covered — new or very small pools may be missing
  • Historical backfill depth varies by protocol