{
  "opencollection": "1.0.0",
  "info": {
    "name": "CoinGecko Onchain DEX API",
    "version": "3.0.1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-cg-pro-api-key",
      "value": "{{x-cg-pro-api-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Simple",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get token prices by contract addresses",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/simple/networks/:network/token_price/:addresses",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "addresses",
                "value": "",
                "type": "path",
                "description": "Comma-separated list of token contract addresses (up to 30)"
              }
            ]
          },
          "docs": "Get the USD prices of multiple tokens on a specific network by their contract addresses. Returns the latest price data for each requested token."
        }
      ]
    },
    {
      "info": {
        "name": "Networks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List supported networks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              }
            ]
          },
          "docs": "Get the list of all supported blockchain networks with their identifiers. Use these network IDs in other onchain endpoints."
        }
      ]
    },
    {
      "info": {
        "name": "DEXes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List DEXes on a network",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/dexes",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              }
            ]
          },
          "docs": "Get the list of all supported decentralized exchanges on a specific blockchain network."
        }
      ]
    },
    {
      "info": {
        "name": "Trending Pools",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get trending pools across all networks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/trending_pools",
            "params": [
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex, network)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              },
              {
                "name": "duration",
                "value": "",
                "type": "query",
                "description": "Trending duration filter"
              }
            ]
          },
          "docs": "Get the list of trending liquidity pools across all supported networks, ranked by web visits and onchain trading activity."
        },
        {
          "info": {
            "name": "Get trending pools on a network",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/trending_pools",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              },
              {
                "name": "duration",
                "value": "",
                "type": "query",
                "description": "Trending duration filter"
              }
            ]
          },
          "docs": "Get the list of trending liquidity pools on a specific blockchain network, ranked by web visits and onchain trading activity."
        }
      ]
    },
    {
      "info": {
        "name": "Pools",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get pool data by contract address",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/pools/:address",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "address",
                "value": "",
                "type": "path",
                "description": "The pool contract address"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex)"
              }
            ]
          },
          "docs": "Get detailed data for a specific liquidity pool by its contract address on a given network. Includes price, volume, liquidity, and token information."
        },
        {
          "info": {
            "name": "Get multiple pools by addresses",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/pools/multi/:addresses",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "addresses",
                "value": "",
                "type": "path",
                "description": "Comma-separated list of pool contract addresses (up to 30)"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex)"
              }
            ]
          },
          "docs": "Get data for multiple liquidity pools in a single request by providing a comma-separated list of pool contract addresses on a specific network."
        },
        {
          "info": {
            "name": "Get top pools on a network",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/pools",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Sort order"
              }
            ]
          },
          "docs": "Get the top liquidity pools on a specific blockchain network, ordered by trading volume or liquidity."
        },
        {
          "info": {
            "name": "Get top pools on a DEX",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/dexes/:dex/pools",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "dex",
                "value": "",
                "type": "path",
                "description": "The DEX identifier"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Sort order"
              }
            ]
          },
          "docs": "Get the top liquidity pools for a specific decentralized exchange on a given network."
        },
        {
          "info": {
            "name": "Get new pools on a network",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/new_pools",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              }
            ]
          },
          "docs": "Get the most recently created liquidity pools on a specific blockchain network."
        },
        {
          "info": {
            "name": "Get new pools across all networks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/new_pools",
            "params": [
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex, network)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              }
            ]
          },
          "docs": "Get the most recently created liquidity pools across all supported blockchain networks."
        }
      ]
    },
    {
      "info": {
        "name": "Tokens",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get token data by contract address",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/tokens/:address",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "address",
                "value": "",
                "type": "path",
                "description": "The token contract address"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., top_pools)"
              }
            ]
          },
          "docs": "Get detailed data for a specific token by its contract address on a given network. Includes price, volume, market cap, and other token metrics."
        },
        {
          "info": {
            "name": "Get multiple tokens by addresses",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/tokens/multi/:addresses",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "addresses",
                "value": "",
                "type": "path",
                "description": "Comma-separated list of token contract addresses (up to 30)"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., top_pools)"
              }
            ]
          },
          "docs": "Get price and market data for multiple tokens in a single request by providing a comma-separated list of token contract addresses on a specific network."
        },
        {
          "info": {
            "name": "Get top pools for a token",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/tokens/:address/pools",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "address",
                "value": "",
                "type": "path",
                "description": "The token contract address"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Sort order"
              }
            ]
          },
          "docs": "Get the top liquidity pools that include a specific token on a given network, useful for finding trading venues for a token."
        },
        {
          "info": {
            "name": "Get token info by contract address",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/tokens/:address/info",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "address",
                "value": "",
                "type": "path",
                "description": "The token contract address"
              }
            ]
          },
          "docs": "Get metadata and descriptive information for a specific token by its contract address on a given network. Includes name, symbol, description, image, and website links."
        },
        {
          "info": {
            "name": "Get pools for a specific token",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/tokens/:token_address/pools",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "token_address",
                "value": "",
                "type": "path",
                "description": "The token contract address"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              }
            ]
          },
          "docs": "Get all liquidity pools that contain a specific token on a given network. Results include pool metrics like volume, liquidity, and price data."
        }
      ]
    },
    {
      "info": {
        "name": "OHLCV",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get pool OHLCV chart data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/pools/:pool_address/ohlcv/:timeframe",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "pool_address",
                "value": "",
                "type": "path",
                "description": "The pool contract address"
              },
              {
                "name": "timeframe",
                "value": "",
                "type": "path",
                "description": "OHLCV timeframe granularity"
              },
              {
                "name": "aggregate",
                "value": "",
                "type": "query",
                "description": "Aggregation period. For day timeframe (1). For hour timeframe (1, 4, 12). For minute timeframe (1, 5, 15)."
              },
              {
                "name": "before_timestamp",
                "value": "",
                "type": "query",
                "description": "Return data before this UNIX timestamp"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of OHLCV data points to return (max 1000)"
              },
              {
                "name": "currency",
                "value": "",
                "type": "query",
                "description": "Price currency (usd or token)"
              },
              {
                "name": "token",
                "value": "",
                "type": "query",
                "description": "Which token to use for price (base or quote). Only applicable when currency is token."
              }
            ]
          },
          "docs": "Get OHLCV (Open, High, Low, Close, Volume) candlestick chart data for a specific liquidity pool. Supports daily, hourly, and minutely timeframes with various aggregation periods."
        }
      ]
    },
    {
      "info": {
        "name": "Trades",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get recent trades for a pool",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/networks/:network/pools/:pool_address/trades",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "The blockchain network identifier (e.g., eth, bsc, polygon_pos, solana, arbitrum, avalanche, base)"
              },
              {
                "name": "pool_address",
                "value": "",
                "type": "path",
                "description": "The pool contract address"
              },
              {
                "name": "trade_volume_in_usd_greater_than",
                "value": "",
                "type": "query",
                "description": "Filter trades by minimum USD volume"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              }
            ]
          },
          "docs": "Get the most recent trades for a specific liquidity pool on a given network. Returns trade details including price, volume, and transaction hashes."
        }
      ]
    },
    {
      "info": {
        "name": "Search",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Search for pools",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pro-api.coingecko.com/api/v3/onchain/search/pools",
            "params": [
              {
                "name": "query",
                "value": "",
                "type": "query",
                "description": "Search query (token name, symbol, token address, or pool address)"
              },
              {
                "name": "network",
                "value": "",
                "type": "query",
                "description": "Filter results by network ID"
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Additional data to include (e.g., base_token, quote_token, dex, network)"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              }
            ]
          },
          "docs": "Search for liquidity pools by keyword. Accepts token name, ticker symbol, token contract address, or specific pool contract address as search queries."
        }
      ]
    }
  ],
  "bundled": true
}