GeckoTerminal-backed DEX pool liquidity and estimated trade slippage - size a trade or com
GeckoTerminal-backed DEX pool liquidity and estimated trade slippage - size a trade or compare pools before swapping, with a clearly-flagged constant-product approximation model.
20000 (raw units)
price
2
calls / 30d
1
unique payers
2026-09-03
updated
Provider
alphapipeline-eu.onrender.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x2bcfA4F7E1fA5E96934846A7dEa623398Ed7f752",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"network": "base",
"token_address": "0x4200000000000000000000000000000000000006",
"trade_size_usd": 10000
},
"type": "http"
},
"output": {
"example": {
"data_source": "geckoterminal",
"estimated_slippage_pct": 0.08,
"generated_at": {
"kst": "2026-09-04 21:00:00 KST",
"utc": "2026-09-04T12:00:00Z"
},
"liquidity_usd": 25000000,
"network": "base",
"notice": "슬리피지는 GeckoTerminal이 제공하는 풀의 합산 USD 유동성만으로 계산한 근사치입니다 - 이 풀이 표준 constant-product(x*y=k) AMM이고 두 토큰이 50:50 비율로 구성되어 있다고 가정합니다. Uniswap v3류 집중 유동성 풀이나 스테이블스왑 풀에서는 실제 슬리피지와 차이가 클 수 있습니다 - 실제 매매 전 온체인 견적(quote)으로 반드시 재확인하세요.",
"pool_address": "0xd0b53d9277642d899df5c87a3966a349a798f224",
"pool_name": "WETH / USDC 0.05%",
"price_impact_model": "constant_product_50_50_approximation",
"token_address": null,
"trade_size_usd": 10000,
"volume_24h_usd": 8500000
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"properties": {
"network": {
"description": "GeckoTerminal network id, e.g. base, eth. Defaults to base.",
"type": "string"
},
"pool_address": {
"description": "Specific DEX pool contract address (optional if token_address is given).",
"type": "string"
},
"token_address": {
"description": "Token contract address - the most liquid pool is auto-selected (optional if pool_address is given).",
"type": "string"
},
"trade_size_usd": {
"description": "Hypothetical trade size in USD to estimate slippage for.",
"type": "number"
}
},
"required": [
"trade_size_usd"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data_source": {
"title": "Data Source",
"type": "string"
},
"estimated_slippage_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Estimated Slippage Pct"
},
"generated_at": {
"properties": {
"kst": {
"title": "Kst",
"type": "string"
},
"utc": {
"title": "Utc",
"type": "string"
}
},
"required": [
"utc",
"kst"
],
"title": "TimestampPair",
"type": "object"
},
"liquidity_usd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Liquidity Usd"
},
"network": {
"title": "Network",
"type": "string"
},
"notice": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Notice"
},
"pool_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Pool Address"
},
"pool_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Pool Name"
},
"price_impact_model": {
"title": "Price Impact Model",
"type": "string"
},
"token_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Token Address"
},
"trade_size_usd": {
"title": "Trade Size Usd",
"type": "number"
},
"volume_24h_usd": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Volume 24H Usd"
}
},
"required": [
"generated_at",
"network",
"trade_size_usd",
"price_impact_model",
"data_source"
],
"title": "DexSlippageResponse",
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://alphapipeline-eu.onrender.com/v1/dex/liquidity-slippage" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://alphapipeline-eu.onrender.com/v1/dex/liquidity-slippage");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://alphapipeline-eu.onrender.com/v1/dex/liquidity-slippage")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8004.json, and this resource appears in /discovery/resources and /discovery/search.