Use when an agent needs a major coin's USD price by ticker
1gateway.dev/v1/crypto/price
Use when an agent needs a major coin's USD price by ticker. Input: symbols, 1-5 of BTC, ETH, SOL, USDC, AERO, DEGEN, BONK, JUP, CBBTC, WETH. Output: per symbol priceUsd, confidence, DEX pool (Uniswap/Aerodrome on Base, Orca on Solana), depth, block or slot, and the token used (BTC = cbBTC, ETH = WETH). Onchain pools only, no exchange feed. Example: ?symbols=BTC,ETH
GET
https://1gateway.dev/v1/crypto/priceUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/crypto/price?symbols=BTC%2CETH");
console.log(await res.json());Example input
{
"symbols": "BTC,ETH"
}More from Crypto PriceProvider status
- agentsvc.io/api/v1/proxy/crypto-pricesCrypto price and token price lookup: live spot price and 24h change for BTC, ETH, SOL and other coins by ticker, or for any DEX-traded token by chain:address, in USD and other currencies. Data from DefiLlama. Three modes: (1) coins as CoinGecko-style IDs or tickers (up to 50) for live price and 24h change, converted to the requested currencies; (2) tokens as chain:address (e.g.0.002
- x402.agentindex.world/cryptoCrypto price API, token price lookup. Live spot prices for crypto coins (BTC, ETH, SOL, ...) in USD or another fiat, with 24h change. Accepts tickers or CoinGecko ids. Try GET /crypto/sample.0.001
