Coverage
The lending tables currently include the following protocols:Not every protocol is covered by every table.
markets_daily covers Kamino and Jupiter Lend in full, Save partially (RPC-sampled, no history before 2026-06-23, known accuracy gaps), and not MarginFi (share-based accounting isn’t reconstructable into market state). tvl_daily and the event tables cover all five protocols/markets. metrics_daily combines both, plus events — use has_market_state to tell balance-sheet rows from TVL/event-only rows. Flashloan events are decoded for Kamino, MarginFi, and Jupiter Lend but not yet exposed as a table.Supply vs. Deposits vs. TVL — what each number means
These three concepts sound interchangeable but measure different things, and mixing them up is the most common source of discrepancies against other data vendors’ lending figures:deposits.usd_amount/withdrawals.usd_amount(event tables) — gross, transaction-level flow. Every individual deposit or withdrawal instruction, one row each. Summingdeposits − withdrawalsover time gives you a rough running balance, but it will drift from the true balance because it doesn’t capture interest/yield accrual and can’t distinguish principal from rewards. Don’t use raw flow accumulation as a proxy for “how much is currently supplied” — this is exactly the failure mode that previously understated Solana lending deposits (a protocol went net-negative from flow drift alone).markets_daily.supplied_amount_usd— the protocol’s own balance-sheet state for a market:outstanding_loans_usd + available_liquidity_usd, i.e. total value supplied by lenders whether or not it’s currently borrowed out. This is the authoritative “how much is deposited right now” figure, read directly from (or reconstructed from) the protocol’s market state — but it’s only as good as that protocol’smarkets_dailycoverage (see the coverage note above).tvl_daily.usd_balance— the literal on-chain token balance sitting in the protocol’s vault/reserve account. For a lending protocol this is closer to available liquidity than total supply, because borrowed tokens have left the vault and are no longer part of its balance.tvl_dailywill generally be smaller thanmarkets_daily.supplied_amount_usdfor the same market/day whenever utilization (borrowed vs. supplied) is above zero.
markets_daily/metrics_daily.supplied_amount_usd (where has_market_state = true) for “how much is supplied,” tvl_daily for “how much sits in the vault right now,” and the event tables for transaction-level activity — not as a balance substitute.
Tables Overview
Event-Based Lending Data
These tables provide granular, transaction-level data for lending activities:- deposits - Individual deposit events tracking liquidity provision
- withdrawals - Individual withdrawal events monitoring capital outflows
- loans - Individual loan events (borrows) with complete transaction details
- repayments - Individual repayment events with full transaction metadata
- liquidations - Individual liquidation events, including seized collateral and repaid debt
Market, Metrics & TVL Snapshots
These tables provide balance-sheet, rolled-up, and TVL snapshots at daily granularity:- markets_daily - Forward-filled, per-market snapshots of outstanding loans, available liquidity, and supplied amounts
- metrics_daily - Daily per-protocol summary combining balance-sheet state, TVL, and gross event-flow metrics
- tvl_daily - Daily TVL per market/reserve, by token
- vault_tvl_daily - Daily TVL for vault products (Kamino kvault)
- position_holdings_daily - Daily per-user holdings in vault products (Kamino kvault)
Use Cases
Event-Based Analysis
- Track individual lending transactions and user behavior
- Analyze borrowing patterns and repayment rates
- Monitor deposit and withdrawal flows
- Study liquidation activity and borrower risk
Market, TVL & Metrics Analysis
- Monitor total value locked across lending markets and vaults
- Track daily outstanding loans, available liquidity, and supplied amounts per market
- Analyze per-user vault positions
- Compare lending activity and health across protocols with a single daily metrics table
Data Sources
All lending data is sourced from onchain events, decoded instructions, and (where a protocol doesn’t expose full on-chain state) periodically-sampled reserve state, providing:- Complete transaction metadata
- Normalized token amounts and USD valuations
- Participant addresses and protocol identification
- Precise timestamps and block information
Our Solana Lending schema contains the following tables: