Skip to main content

Overview

The Yields endpoint provides rolling yield/ROI predictions per pool across fixed time horizons (1D, 3D, 7D, 14D, 30D, 90D, 365D). Each prediction is anchored to a specific block/log position and includes aligned arrays for pool tokens, current reserves, observed/predicted volumes, user fees, and ROI fractions. Predictions are derived from historical swap fees and current reserve states.

Endpoint Matrix

Parameter Conventions

number
required
Chain identifier for the target EVM network. See Chain enumeration for supported values.
number
Target prediction horizon in days. Supported values: 1, 3, 7, 14, 30, 90, 365.
number
Starting block height (inclusive) for yield predictions.
number
Ending block height (inclusive) for yield predictions.
string
Starting timestamp (ISO-8601). If it falls between blocks, the next block after this timestamp is used.
string
Ending timestamp (ISO-8601). If it falls between blocks, the last block before this timestamp is used.
string[]
BlockDB pool identifiers for filtering yield predictions by pool.
string[]
Pool contract addresses to scope yield data.
boolean
Only return predictions where observed_period_days == target_period_days (no extrapolation).
number
Minimum ROI threshold for filtering predictions.

Usage Guidance

  • Pool ranking โ€” Use yield predictions to rank pools by expected fee yield over a horizon
  • Allocation screens โ€” Build pool allocation signals using APR/ROI predictions with full provenance
  • Model validation โ€” Compare yield predictions against actual swap fees and reserves for backtesting
  • Horizon selection โ€” Choose target_period_days based on your investment horizon (short-term vs long-term)
  • Full period filtering โ€” Use require_full_period: true to exclude extrapolated predictions when historical data is insufficient

Yield Calculation

Yield predictions are computed using:
  • Historical swap fees (from /evm/swaps/fees) โ€” Observed fee amounts over the available window
  • Current reserves (from /evm/reserves) โ€” Current pool state for ROI denominator
  • Extrapolation โ€” When observed_period_days < target_period_days, predictions are scaled by target_period_days / observed_period_days
ROI per token: roi_predicted[i] = user_fees_predicted[i] / current_reserves[i]

Prediction Quality Indicators

Each yield record includes quality indicators:
  • observed_period_days: Actual days of history used
  • is_full_period: true when observed_period_days == target_period_days
  • is_extrapolated: true when history is shorter than target
  • extrapolation_factor: Scaling factor applied (target / observed)

Common Patterns

Rank pools by 30-day yield:
Get yield predictions for specific pools:
Filter by minimum ROI:

Dataset Relationships

  • Swap Fees โ†’ Yields: Historical swap fees are the primary input for yield predictions
  • Reserves โ†’ Yields: Current reserves provide the denominator for ROI calculations
  • Pools โ†’ Yields: Join pool metadata to yield predictions using pool_uid
  • Fee Terms โ†’ Yields: Fee terms determine which fees are attributed to LPs/users
  • Yields โ†’ Prices: Yield predictions can inform pricing models for pool tokens

See Also

Last modified on July 19, 2026