{"uid":"cap_q3geW7OeVT3v_mxoj4CLc","slug":"coingecko-onchain-dex-token-price-ethereum-network-95317ec2","name":"CoinGecko Onchain DEX Token Price - Ethereum Network","description":"Query onchain DEX token price & market data based on the provided token contract addresses on a network.","url":"https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/eth/token_price/EVM%20wallet%20address%20(0x-prefixed%2C%2040%20hex%20characters)?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"include_24hr_vol":{"type":"boolean"},"mcap_fdv_fallback":{"type":"boolean"},"include_market_cap":{"type":"boolean"},"include_inactive_source":{"type":"boolean"},"include_24hr_price_change":{"type":"boolean"},"include_total_reserve_in_usd":{"type":"boolean"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_t9ldLGaqq-tq1QMA_vBwK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches real-time DEX token price and market data for ERC-20 tokens on the Ethereum network using contract addresses via CoinGecko's onchain API.","exampleAgentPrompt":"What's the current onchain DEX price, 24-hour volume, and market cap for the Ethereum token at contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48? Include the 24-hour price change too.","exampleUseCases":[{"title":"DeFi portfolio price tracker","prompt":"Can you pull the current onchain price and 24-hour price change for these Ethereum token contracts: 0x6B175474E89094C44Da98b954EedeAC495271d0F and 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2? I want to see their DEX market data from CoinGecko."},{"title":"DeFi token market cap check","prompt":"What's the onchain market cap and fully diluted valuation for the Ethereum token at contract address 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984? Use CoinGecko's onchain data and fall back to FDV if market cap isn't available."},{"title":"DEX liquidity reserve monitoring","prompt":"Check the total reserve in USD and 24-hour trading volume on DEXes for the Ethereum token contract 0x514910771AF9Ca656af840dff83E8264EcF986CA — I want to know how liquid it is right now."}],"resultDescription":"Returns a JSON object containing onchain DEX market data for the specified token contract address(es) on Ethereum, including current price in USD, optionally 24-hour volume, market capitalization, 24-hour price change percentage, and total reserve in USD sourced from DEX liquidity pools.","failureModes":["Invalid or malformed contract address (not 0x-prefixed or not 40 hex characters) returns 400 error","Token contract not found on Ethereum network returns empty data or 404","Contract address is for an inactive or delisted token with no DEX data","Rate limit exceeded on the pro API tier returns 429","Network connectivity issues or CoinGecko API downtime returns 5xx errors","Token has no onchain DEX liquidity resulting in null price fields"],"whenToPreferThis":"Use this endpoint when you need real-time onchain DEX price data for ERC-20 tokens on the Ethereum network and have the token contract address available. Prefer this over CoinGecko's standard simple/price endpoint when you need DEX-sourced pricing (not CEX aggregated), reserve data, or when the token is only traded onchain and may not have a CoinGecko coin ID. Ideal for DeFi applications, portfolio trackers, and arbitrage monitors that work with contract addresses directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:48:13.149Z","isFirstParty":false,"canonicalSlug":"coingecko-onchain-dex-token-price-ethereum-network-95317ec2"}