Metadata
GET /public/v1/evm/{chain_id}/metadata
Returns the funded pools on a chain together with their onchain metadata, token details, fiat prices and pool state. By default only pools with at least $10 of TVL are listed; pools whose TVL can't be computed are hidden too. Pass minTvlFiat=0 to list every pool. Results are paginated.
This is a public endpoint. Authentication is not required.
Path parameters
chain_id1. Must be one of the chains returned by GET /public/v1/chains. An unsupported chain returns 404 {"error": "Unknown chainId: 999999"}; a non-numeric value returns 400.Query parameters
All optional. Unknown parameters are ignored.
count50500 (larger values are capped). 0 is treated as 1. Page through with offset to get the full list.offset0nextOffset from the previous page. An offset past the end returns an empty data array.sortBytieredtiered, tvl, created, volume, volume7d, volume30d, volumeAll, apr, apr7d, or a Markout APR sort (case-insensitive). volume ranks by 24h volume (volume24h also works); volume7d, volume30d and volumeAll rank by volumeByWindow.7d, .30d and .all. Volume sorts break ties by TVL. A Markout APR sort is markoutApr followed by a window (24h, 7d, 30d, All) and a horizon (1m, 5m, 30m), such as markoutApr24h1m or markoutAprAll30m, and ranks by markoutByWindow.<window>.byHorizon.<horizon>.aprBps. The 7d 5m sort is markoutApr7d (markoutApr7d5m also works). A Recommended sort is recommended followed by the same window and horizon, such as recommended7d5m: green and yellow pools rank together, followed by red and then unclassified pools, and inside each group pools rank by a combined score of TVL, volume and Markout APR over that window. Pools with no TVL or under $10 of TVL rank last in the whole list, below every pool with liquidity. Any other value returns 400. apr and apr7d rank by the LP fee APR and are deprecated: they will be removed, so use a Markout APR sort instead.sortOrderdescasc or desc. Any other value returns 400.include24hfalsetrue adds tvlFiat and analytics24h to every pool. Must be exactly true or false.minTvlFiat100 disables the filter.tiergreen, yellow, red, e.g. tier=green,yellow. Any other value returns 400.lockedPricingOnlyfalsetrue keeps only pools whose Price Provider can never be changed (lockedPricing: true).depositAllowlistEnabledfalsetrue keeps only pools with deposit allowlisting enabled.verifiedCuratorOnlyfalsetrue keeps only pools run by a verified curator: Relatick-operated (verifiedAdmin: true) or identity-verified by Relatick (no curator_unverified in reasonCodes).blacklistedOnlyfalsetrue returns only pools delisted by Relatick (tierQualification: "black"). No default TVL floor applies.addresses500. Returns only those pools. See Look up specific pools.contract_versionv1. An unknown or disabled release returns 404.fiatUSDUSD is supported; any other value returns 400.The cross-chain endpoint GET /public/v1/evm/metadata takes the same parameters except sortBy=created, which is per-chain only, plus chainIds (comma-separated chain IDs, e.g. chainIds=1,56) to limit it to some chains. A non-numeric entry returns 400; an unknown chain ID returns no rows.
Pagination
Read nextOffset from the response and pass it back as offset to fetch the next page. nextOffset is null on the last page. total is the full count across all pages.
Look up specific pools
If you already know which pools you want, for example the pools a wallet holds positions in, pass them in addresses instead of requesting each pool on its own or paging through the full list:
curl "https://api.metric.xyz/public/v1/evm/1/metadata?include24h=true&addresses=0xF85AfbADeCC7F23Dd173ed706f07d9C7e2473e24"
- Up to
500addresses, comma-separated. Case doesn't matter and duplicates are ignored. - Only the pools you name are returned. A pool that isn't listed (an unknown address, a pool delisted by Relatick, or one created since the list was last refreshed) is left out rather than returning an error.
- The default
$10TVL floor doesn't apply, so a small pool you name is still returned. If you passminTvlFiatyourself it applies, as dotier,lockedPricingOnly,depositAllowlistEnabledandverifiedCuratorOnly. sortBy,sortOrder,countandoffsetwork as on the full list, andtotalcounts only the pools returned. The defaultcountis50, so pass a largercountwhen naming more than 50 pools.- On the cross-chain endpoint, a pool address found on more than one chain returns one row per chain. Use
chainIdsto limit the chains searched. - A malformed address, an empty value, more than
500addresses, oraddressestogether withblacklistedOnly=truereturns400.
Request
curl "https://api.metric.xyz/public/v1/evm/1/metadata?count=1&sortBy=tvl&include24h=true"
curl "https://api.metric.xyz/public/v1/evm/1/metadata?count=50&offset=50"
Response
200 OK: a PaginatedMetadataResponse envelope.
{
"data": [
{
"pair": "WETH/USDC",
"chain": "ethereum",
"contractVersion": "v1",
"poolAddress": "0xF85AfbADeCC7F23Dd173ed706f07d9C7e2473e24",
"priceProviderAddress": "0xa07A8Aa6D5311eCfc01C01eC9Eefd17b0A8A9445",
"priceProviderDetails": {
"providerType": "anchored",
"oracle": "0x30a88bf894D1b806125a23ebf23D715496fD7102",
"feedMode": "synthetic",
"marginStep": "0",
"minMargin": "5000000000000",
"maxRefStaleness": "15",
"maxSpreadMult": "1000000000000000000",
"mutableParams": false,
"source": "0x599b0027942fC98BadC121cB789fE0D4a11A0879",
"confidenceParam": null,
"baseMaxStaleness": "15",
"quoteMaxStaleness": "15",
"baseSpreadMult": "0",
"quoteSpreadMult": "0"
},
"token0": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"token1": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"token0Symbol": "WETH",
"token1Symbol": "USDC",
"token0Name": "WETH",
"token1Name": "USDC",
"token0Decimals": 18,
"token1Decimals": 6,
"token0LogoUrl": "https://cdn.metric.xyz/tokens/1/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png",
"token1LogoUrl": "https://cdn.metric.xyz/tokens/1/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.png",
"token0BrandColor": "#101010",
"token1BrandColor": "#0050b0",
"token0FiatPrice": 2709.4,
"token1FiatPrice": 0.999853,
"tvlFiat": 115757.94,
"creator": "0x80f0A7d148729CcEdb6cD07FBaAEfC5A16f33D4f",
"admin": "0x80f0A7d148729CcEdb6cD07FBaAEfC5A16f33D4f",
"adminUsername": "Carcosa",
"verifiedAdmin": true,
"adminFeeDestination": "0x53F0ACE6156DAF7F6b50B395F6DD66C9d2f50c8c",
"spreadProtocolFeeE6": 150000,
"spreadAdminFeeE6": 200000,
"protocolNotionalFeeE8": 0,
"adminNotionalFeeE8": 0,
"analytics24h": {
"fromTs": 1790422039,
"toTs": 1790508439,
"generatedAtTs": 1790508439,
"fiatAvailable": true,
"fiatCoveragePct": 100,
"fiatStatus": "active",
"fiatCurrency": "USD",
"fromBlock": 26061325,
"toBlock": 26068435,
"swapTxCount": 493,
"liquidityEventCount": 0,
"liquidityAddEventCount": 0,
"liquidityRemoveEventCount": 0,
"transfers": 493,
"token0": {
"liquidityRaw": "24431277185857724312",
"volumeRaw": "287082472219069397624",
"inflowRaw": "144190709723083426314",
"outflowRaw": "142891762495985971310",
"netRaw": "1298947227097455004",
"liquidityFiat": 66194.1,
"volumeFiat": 777821.25,
"inflowFiat": 390670.31,
"outflowFiat": 387150.94,
"netFiat": 3519.37
},
"token1": {
"liquidityRaw": "49571124074",
"volumeRaw": "773469090135",
"inflowRaw": "385002290049",
"outflowRaw": "388466800086",
"netRaw": "-3464510037",
"liquidityFiat": 49563.84,
"volumeFiat": 773355.39,
"inflowFiat": 384945.69,
"outflowFiat": 388409.7,
"netFiat": -3464
},
"pricingMode": "estimated_spot",
"usdCoveragePct": 0,
"aprBps": 843,
"feesFiat": 26.89,
"tvlFiat": 115757.94,
"volumeFiat": 775588.32
},
"aprBps7d": 2805,
"lockedPricing": true,
"pauseLevel": 0,
"priceProviderCooldownSecs": 18446744073709551615,
"depositWhitelistingEnabled": false,
"createdBlockNumber": 25984907,
"createdTimestamp": 1789499963,
"priceProviderSinceBlock": 25984907,
"extensions": [
"0x599b0027942fC98BadC121cB789fE0D4a11A0879",
"0xE4038fA09f0bB9963068afaF97BE0c045155090D",
"0xEbc53e61078976118E384f110c262A263decB84B"
],
"extensionDetails": {
"stopLoss": {
"phases": ["afterSwap"],
"drawdownE6": "150000",
"decayPerSecondE18": "1736111111111",
"timelockSecs": "3600"
},
"priceVelocity": {
"phases": ["beforeSwap"],
"maxChangePerBlockE18": "100000000000000000"
}
},
"classificationSummary": {
"tierQualification": "red",
"reasonCodes": ["stop_loss_mutable"]
},
"poolFactoryAddress": "0x2a53833cc95548cf52c7b159110e22D3a9018f32",
"poolDeployerAddress": "0x2E0A99A2E352043d1CA489cF45bf7B511BCcC738",
"liquidityAdderAddress": "0x06Cb6C245Cd9219262442A7730D9484B3CfdD901",
"dataProviderAddress": "0x9BB15FE2B214E37d19A6c59eE7B132e787FdfB2a",
"depositAllowlistAddress": "0x65FBa4Ee8f50772aB384f19e5520DdA420B1B47D",
"oracleValueStopLossAddress": "0xE4038fA09f0bB9963068afaF97BE0c045155090D",
"priceVelocityGuardAddress": "0xEbc53e61078976118E384f110c262A263decB84B",
"quoterAddress": "0x3B9ea79f482094323d06064E637a7F4528560fcb",
"priceProviderStatus": "healthy"
}
],
"total": 9,
"nextOffset": 1
}{% hint style="warning" %} priceProviderCooldownSecs can be 18446744073709551615 (2^64 − 1), which is larger than JavaScript's Number.MAX_SAFE_INTEGER. JSON.parse silently rounds it to 18446744073709552000. Parse it as a BigInt, or treat any value ≥ 2^53 as "never". {% endhint %}
Pool fields
Identity
pairtoken0Symbol/token1Symbol.chainGET /public/v1/chains. Casing varies by chain (ethereum, BSC, Robinhood); key on the chain ID, not this string.contractVersionv1.poolAddresscreatedBlockNumbercreatedTimestampTokens
token0, token1token0Symbol, token1Symboltoken0Name, token1Nametoken0Decimals, token1Decimalstoken0LogoUrl, token1LogoUrltoken0BrandColor, token1BrandColortoken0FiatPrice, token1FiatPricenull when no price is available.Price provider
priceProviderAddresspriceProviderDetailspriceProviderStatuspriceProviderSinceBlockpriceProviderCooldownSecs2^64 − 1 means it can never be changed (see the warning above).lockedPricingtrue when the provider can never be changed.priceProviderChangepriceProviderDetails for an anchored provider (providerType: "anchored"): oracle, feedMode (single or synthetic), source, marginStep, minMargin, maxRefStaleness, maxSpreadMult, mutableParams, confidenceParam, baseMaxStaleness, quoteMaxStaleness, baseSpreadMult, quoteSpreadMult.
For a regular provider (providerType: "regular"): oracle, marginStep, maxTimeDelta, confidenceParam.
Numeric values inside priceProviderDetails are decimal strings, and any of them may be null. marginStep is signed and can be negative. source is omitted when the provider has no custom source (reference mode).
Price provider status
healthyfeed_downpool_refusedpool_pausedunknownOnly healthy means the pool is quotable. The status is the most recent reading of the pool's price. Relatick's periodic price capture reads every pool about every 30 seconds. In between, a bid and ask quote with depth (the default) that reads the pool afresh also updates it, so a pool that is being quoted usually reflects its feed going down within a block. Quotes with depth=false or served from cache do not update it, and a pool whose feed is down is re-read less often, so its recovery usually shows through the 30-second capture. A pool that is rarely quoted can be up to about 30 seconds out of date, and any status can be out of date by the time you trade. If price capture stops, every pool shows unknown after about 90 seconds. Use the status to filter out pools that are down, and check bid and ask right before trading.
Curator and fees
creatoradminadminUsernamenull when none is set.verifiedAdminadminFeeDestinationspreadProtocolFeeE6spreadAdminFeeE6protocolNotionalFeeE8adminNotionalFeeE8aprBps7dmarkoutByWindow.7d.byHorizon.<horizon>.aprBps.tradingPnlAprBps7daprBps7d. Optional. Deprecated: it will be removed. Use summary.tradingPnlAprBps from GET /public/v1/evm/{chain_id}/{pair}/analytics?period=7d, with the pool address as {pair}.markoutByWindow24h, 7d, 30d, all), each with fromTimestamp and byHorizon keyed by horizon (1m, 5m, 30m). Optional. See below.volumeByWindow24h, 7d, 30d, all), each `number \, the same definition as analytics24h.volumeFiat`. Optional.Each markoutByWindow window and horizon has:
markoutFiat[fromTimestamp, throughTimestamp), summed over the swaps with a price at that horizon. Signed: positive means LPs kept money.aprBpsmarkoutFiat, annualized and divided by the liquidity of the bins that traded in the window, over the same span, in basis points. Signed. Liquidity in bins no swap reached is left out, unlike aprBps7d. It annualizes the window's past markout; it isn't a projected return.pricedVolumeShareunpricedFillstradedLiquidityShareaprBps divides by: the liquidity of the bins that traded ÷ the liquidity of every bin, over the same span, 0–1. 1 only when every bin that held liquidity traded.tradedBinsfundedBinsthroughTimestampThe figures are null until the window has 5 minutes of settled data, when no swap in it has a price, or when under 70% of its volume does. aprBps has no minimum liquidity, so a window where only a small bin traded can show a very large APR. A window where no bin traded has markoutFiat 0 and aprBps null. tradedLiquidityShare is 0 when the pool held liquidity and nothing traded, is served even when markoutFiat and aprBps are null (under 70% priced volume), and is null when no bin held liquidity, a token is unpriced, or the window has no settled data yet; tradedBins and fundedBins are null without settled data, when they can't be read, or when a bin's liquidity can't be computed (which also makes tradedLiquidityShare null).
The fee fields mirror the onchain poolFeeConfig(pool) on MetricOmmPoolFactory. For a pool not listed here (e.g. before it is funded), read that onchain.
State and access
pauseLevel0 = active. Any other value blocks swaps. Optional.curBinIdxinclude24h. Optional.depositWhitelistingEnableddepositAllowlistProviderdepositWhitelistingEnabled is true.Extensions and classification
extensionsextensionDetailsstopLoss (drawdownE6, decayPerSecondE18, timelockSecs) and priceVelocity (maxChangePerBlockE18). Each lists the swap phases it runs in. Values are decimal strings or null. Optional.classificationSummary.tierQualificationgreen, yellow or red; unclassified when the pool hasn't been classified yet or required classification inputs cannot be verified; black for a pool delisted by Relatick (returned only with blacklistedOnly=true).classificationSummary.reasonCodesReason codes
bin_width_exceededstop_loss_missingstop_loss_uninitializedstop_loss_mutablestop_loss_drawdown_exceededstop_loss_decay_exceededapp_missingapp_mutablefeed_staleness_exceededprice_provider_mutablecurator_unverifiedcurator_not_creatorremove_liquidity_extension_presentanchored_feed_unmatchedmultiplier_feed_miswiredmultiplier_token_unscaledreference_source_unrecognized, external_source_unreviewedanchored_feed_unmatched drops the pool one tier. multiplier_feed_miswired and multiplier_token_unscaled make it red whatever else it meets. See Pool tiers.
Contract addresses
poolFactoryAddress, poolDeployerAddress, liquidityAdderAddress, dataProviderAddress, quoterAddress, depositAllowlistAddress, oracleValueStopLossAddress and priceVelocityGuardAddress echo the deployment the pool belongs to. See Contract addresses.
24h analytics (include24h=true only)
tvlFiatanalytics24h.tvlFiat).analytics24h.fromTs / toTs / generatedAtTsanalytics24h.fromBlock / toBlockanalytics24h.swapTxCount, transfersanalytics24h.liquidityEventCount, liquidityAddEventCount, liquidityRemoveEventCountanalytics24h.token0 / token1liquidityRaw, volumeRaw, inflowRaw, outflowRaw, netRaw (raw token units, decimal strings) and the matching …Fiat values in USD.analytics24h.volumeFiat, feesFiat, tvlFiatfeesFiat is deprecated and will be removed.analytics24h.aprBpsmarkoutByWindow.24h.byHorizon.<horizon>.aprBps.analytics24h.fiatAvailable, fiatStatus, fiatCurrency, fiatCoveragePct, pricingMode, usdCoveragePctOmitted vs null
Optional fields are omitted entirely when absent; they are not returned as null. These optional fields are: token0Symbol, token0Name and token0Decimals (and their token1 counterparts), logo and color fields, admin, aprBps7d, tradingPnlAprBps7d (also omitted while the pool's Trading P\&L history is still being built or is more than 2 hours behind, when a period in the window can't be priced, or when the data is temporarily unavailable), markoutByWindow, volumeByWindow, pauseLevel, priceProviderDetails, priceProviderDetails.source, priceProviderChange, depositAllowlistProvider, extensionDetails, curBinIdx, and tvlFiat / analytics24h (only with include24h=true).
These fields are always present and may be null: token0FiatPrice, token1FiatPrice, adminUsername, the four fee fields (spreadProtocolFeeE6, spreadAdminFeeE6, protocolNotionalFeeE8, adminNotionalFeeE8), every numeric value inside priceProviderDetails and extensionDetails, and the fiat values in analytics24h (aprBps, feesFiat, tvlFiat, volumeFiat, fiatCoveragePct and each token's …Fiat values).
Errors
400chain_id, unsupported sortBy, sortOrder, tier or fiat, negative count, or include24h other than true/false.404chain_id is not served by the API ({"error": "Unknown chainId: <id>"}), or contract_version is unknown or disabled.Most error bodies are JSON {"error": "…"}. A query parameter that can't be parsed at all (e.g. count=abc, include24h=yes) returns a plain-text body instead, such as Failed to deserialize query string: ….
Examples use the Ethereum WETH/USDC pool. Other pairs returned by this endpoint use the same conventions.
Last updated 29 days ago
Relatick