{"slug":"1gateway-dev-v1-onchain-prices-batch-2deda7","title":"Use when a trading agent needs many token prices at once plus the price impact o","host":"1gateway.dev","method":"GET","resource":"https://1gateway.dev/v1/onchain/prices/batch","category":"market","description":"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, effectivePrice","price_listed":0.008,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:137","eip155:143","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"amount_usd":5000,"amounts":"1000,100000","tokens":"base:0x4200000000000000000000000000000000000006,base:0x940181a94A35A4569E4529A3CDfB74e38FD98631"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"amount_usd":{"default":1000,"description":"Size of the buy to estimate, in USD (default 1000)","maximum":10000000,"minimum":1,"type":"number"},"amounts":{"description":"Up to 5 USD buy sizes for a price-impact curve (instead of amount_usd); each price row gets trades[]","maxLength":80,"pattern":"^\\d{1,8}(,\\d{1,8}){0,4}$","type":"string"},"tokens":{"description":"Comma-separated chain:address list, max 25 (≤10 Solana). Bad input → 400 before payment (not charge…","pattern":"^(?:base|sol|solana):[0-9A-Za-z]{32,44}(?:,(?:base|sol|solana):[0-9A-Za-z]{32,44})*$","type":"string"}},"required":["tokens"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"amountUsd":{"type":"integer"},"asOf":{"additionalProperties":true,"properties":{"at":{"type":"string"},"baseBlock":{"type":"integer"},"solanaSlot":{"type":"integer"}},"type":"object"},"cached":{"type":"boolean"},"method":{"additionalProperties":true,"properties":{"cacheSeconds":{"type":"integer"},"price":{"type":"string"},"trade":{"type":"string"}},"type":"object"},"notes":{"items":{"type":"string"},"type":"array"},"prices":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"rpc":{"additionalProperties":true,"properties":{"kind":{"type":"string"},"source":{"type":"string"}},"type":"object"}},"required":["amountUsd","prices","asOf","rpc","cached","method","notes"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"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","last_updated":"2026-11-23T02:14:31.968Z","schemes":["exact"]}