Skip to main content
POST
Not publicly available: This dataset is not included in the standard public API. Request access via a custom plan — contact support@blockdb.io.

Overview

  • Dataset ID: 0411 - Liquidity Pool Yields
  • Description: Rolling yield/ROI predictions per pool over fixed horizons (1D, 3D, 7D, 14D, 30D, 90D, 365D), based on historical swap fees (blockdb_evm.b0303_liquidity_pools_swap_fees_v1) and current reserves (latest blockdb_evm.b0301_liquidity_pools_reserves_v1 snapshot).
  • CSV Sample: Download
  • JSON Sample: Download

Parameters

number
required
Target EVM network. See the Chain enumeration for supported values.

Range Filters (mutually exclusive)

number
Starting block number (inclusive) for the query. Use with to_block.
number
Ending block number (inclusive) for the query. Use with from_block.
string
Starting timestamp (ISO-8601). If it falls between blocks, the next block after this timestamp is used. Use with to_timestamp.
string
Ending timestamp (ISO-8601). If it falls between blocks, the last block before this timestamp is used. Use with from_timestamp.
Scoping rule: Provide exactly one of:
  1. Block range — from_block and to_block
  2. Time range — from_timestamp and to_timestamp
  3. Direct selectors — presented below
Direct selectors may be used on their own, without a block or time range. Do not combine scoping modes. Omitting all three returns HTTP 400.

Pool Selectors

number[]
Filter pools by exchange IDs. See the DigitalExchange enumeration for supported values.
string[]
Filter by BlockDB pool identifiers (uid from /evm/entities/pools).
string[]
Filter by pool contract addresses (hex string, 20 bytes, no 0x prefix).
string[]
Filter by protocol-specific pool identifiers (e.g., Uniswap V4 pool_id).
number[]
Filter by AMM archetype. See the PoolType enumeration for supported values.

Horizon & Token Filters

number
Target horizon in days. Allowed values: 1, 3, 7, 14, 30, 90, 365.
string[]
Restrict to pools that contain at least one of these tokens (hex string, 20 bytes, no 0x prefix).
boolean
default:"false"
If true, returns only rows where observed_period_days == target_period_days (no extrapolation).

Pagination Controls

number
default:"250"
Recommended default 250; maximum 1000 to stay under ~10 MB responses.
string
Pagination cursor from a prior call.

Response Fields

Meta

object
Echo of request metadata applied to the response.
number
EVM chain ID echoed from the request.
object
Pure echo of the window you sent (from_block/to_block/from_timestamp/to_timestamp); unset bounds are null.
object | null
The concrete window the query actually executed against, after resolving the request. For a block range on a time-bucketed endpoint (OHLC/VWAP/VWAP-aggregate/fiat VWAP), from_timestamp/to_timestamp hold the resolved timestamp window (and from_block/to_block echo your request). For a time range on a block-keyed endpoint, from_block/to_block hold the resolved block range (and the timestamps echo your request). null for selector-only requests (no window). No extra database work is done — these are the values the query already computed.
number | null
Resolved/echoed start block of the executed window.
number | null
Resolved/echoed end block of the executed window.
string | null
Resolved/echoed start timestamp (ISO-8601) of the executed window.
string | null
Resolved/echoed end timestamp (ISO-8601) of the executed window.
object
Filters echoed from the request (selectors, horizon filters, pagination state, etc.).

Data

object[]
Array of yield/ROI prediction records matching the request. Rows are keyed by (pool_uid, target_period_days, block_number, tx_index, log_index); there is no separate numeric id field.
string
BlockDB pool identifier (uid from /evm/entities/pools).
number
Exchange/DEX identifier.
number
Pool type identifier.
number
Block height of the as-of snapshot anchor.
string
UTC timestamp of the as-of snapshot anchor.
number
Zero-based transaction index within the block.
number
Zero-based log index within the transaction.
number
Target horizon in days (1, 3, 7, 14, 30, 90, 365).
number
Observed history actually used to produce the prediction.
boolean
true when observed_period_days == target_period_days.
boolean
true when the row is scaled from shorter history.
string
Scaling factor applied when extrapolating. Returned as a string to preserve precision.
string
Start time of the observed window used for aggregation.
string
End time of the observed window used for aggregation.
string[]
Pool token addresses. All array-valued metrics are aligned to this order.
string[]
Current reserves per token (decimals-adjusted). Returned as strings to preserve precision.
string[]
Observed traded volume per token in the observed window.
string[]
Predicted traded volume per token for the target horizon.
string[]
Observed user/LP fee amounts per token in the observed window.
string[]
Predicted user/LP fee amounts per token for the target horizon.
string[]
Predicted ROI fractions per token for the target horizon.
string
Row-level lineage hash (hex string, no 0x prefix).
string[]
Lineage references of immediate parents.
string
Record creation timestamp (ISO-8601).
string
Last update timestamp (ISO-8601).

Envelope Fields

string | null
Cursor token for pagination.
number
Number of records returned in data.
Last modified on July 19, 2026