← Back to directory

Use when a trading agent needs many token prices at once plus the price impact o...

https://1gateway.dev/v1/onchain/prices/batch

Overview

Use when a trading agent needs many token prices at once plus the price impact of a buy. Input: tokens (≤25, base:0x… or sol:<mint>, ≤10 Solana), amount_usd (default 1000) or amounts (up to 5 USD sizes). Output: per token priceUsd, confidence, pool, depth and buy estimates: tokensOut, effectivePriceUsd, priceImpactPct (Uniswap v3 QuoterV2 / Aerodrome, Orca CLMM). Example: ?tokens=base:0x4200000000000000000000000000000000000006&amounts=1000,100000

Protocol x402
Price $0.0080
Payment Asset USD Coin
Payment Network eip155:8453
Category crypto/prices
Provider Onchain Batch Prices & Slippage
Source bazaar
Indexed 2026-11-23 04:05:49

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "amount_usd": 5000, "amounts": "1000,100000", "tokens": "base:0x4200000000000000000000000000000000000006,base:0x940181a94A35A4569E4529A3CDfB74e38FD98631" }, "type": "http" }

Output Schema

{ "example": { "amountUsd": 5000, "asOf": { "at": "2026-11-07T09:34:48.329Z", "baseBlock": 54268563, "solanaSlot": 466463751 }, "cached": false, "method": { "cacheSeconds": 20, "price": "Spot price from the deepest Uniswap v3 / Aerodro…", "trade": "Buy amount_usd (or each amounts size) worth of t…" }, "notes": [ "One pool only (no routing/aggregation); a router…" ], "prices": [ { "chain": "base", "confidence": "high", "path": [ "WETH" ], "pool": { "address": "0x6c561b446416e1a00e8e93e221854d6ea4171372", "depthUsd": 89778758, "dex": "uniswap_v3", "feeTier": "0.3%", "quote": "USDC" }, "priceUsd": 2242.46, "symbol": "WETH", "token": "0x4200000000000000000000000000000000000006", "trade": { "amountUsd": 5000, "effectivePriceUsd": 2249.2149, "method": "uniswap_v3_quoter", "priceImpactPct": 0.3, "side": "buy", "tokensOut": 2.223 }, "warnings": [] } ], "rpc": { "kind": "public", "source": "base-rpc.publicnode.com" } }, "type": "json" }