{"uid":"cap_fzAwfJSL43EiL40E2es5m","slug":"on-chain-token-price-by-contract-address-dex-defi-2bdae8cc","name":"On-Chain Token Price by Contract Address (DEX/DeFi)","description":"","url":"https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/crypto/token-price","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["contracts"],"properties":{"platform":{"type":"string","default":"ethereum","description":"Chain / asset platform (e.g. ethereum, base, bsc, polygon, arbitrum, optimism, solana)."},"contracts":{"type":"array","items":{"type":"string","maxLength":120,"minLength":3,"description":"Token contract address on the given chain."},"maxItems":50,"minItems":1},"vsCurrency":{"type":"string","default":"usd"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["machine","route","items"],"properties":{"count":{"type":"integer"},"items":{"type":"array","items":{"type":"object","properties":{"price":{"type":["number","null"]},"contract":{"type":["string","null"]},"marketCap":{"type":["number","null"]},"volume24h":{"type":["number","null"]},"lastUpdated":{"type":["string","null"]},"change24hPct":{"type":["number","null"]}}}},"route":{"type":"string"},"machine":{"type":"string"},"platform":{"type":"string"},"economics":{"type":"object","properties":{"sellPriceUsd":{"type":"number"},"upstreamCostUsdActual":{"type":["number","null"]}}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7wtMgyAUQfa6ekRmvhFmM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current USD price, market cap, 24h volume, 24h change %, and last-updated timestamp for one or more token contract addresses on a given blockchain.","exampleAgentPrompt":"What's the current USD price, market cap, and 24h volume for these two Ethereum tokens — contract addresses 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 and 0x6B175474E89094C44Da98b954EedeAC495271d0F?","exampleUseCases":[{"title":"DeFi portfolio valuation","prompt":"I hold a bunch of tokens on Arbitrum — can you look up the current USD prices and market caps for these three contract addresses: 0x..., 0x..., 0x...? I want to see the total value of my portfolio."},{"title":"Newly listed DEX token monitoring","prompt":"I just found a new token on Base with contract address 0x4ed4e862860bed51a9570b96d89af5e1b0efefed — what's its current price, 24h change, and trading volume?"},{"title":"On-chain price feed for trading bot","prompt":"Fetch live USD prices and 24h volume for these five Polygon token contracts so I can decide whether any have enough liquidity to trade: 0x..., 0x..., 0x..., 0x..., 0x..."}],"resultDescription":"An array of per-token objects each containing: contract address, USD price, market cap, 24h volume, 24h price change percentage, and last-updated timestamp. Also includes the resolved platform, a count of results, and cost economics metadata.","failureModes":["Token contract address not found on the specified chain — returns null fields for that item","Invalid or malformed contract address — may return null or error for the affected entry","Unsupported chain/platform — defaults to ethereum or returns an error","Rate limiting or upstream data provider outage — may return stale or missing data","Exceeding 50 contracts per request — rejected at input validation"],"whenToPreferThis":"Use this endpoint when you need on-chain price data for DeFi, DEX-listed, or newly listed tokens identified by their contract addresses — especially long-tail tokens not covered by ticker-symbol-based APIs. Prefer this over CoinGecko ticker-based endpoints when you have contract addresses rather than coin IDs, or when dealing with tokens across multiple chains simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:35:17.378Z","isFirstParty":false}