Skip to content
Fourohtwo

Token price API

agent-data-tools.revmesh2074.workers.dev/token-price-api

Token price API: live USD price of a crypto token by symbol (ETH, BTC, LINK), coin name, CoinGecko id or ERC-20 address on Base, Ethereum, Arbitrum or Optimism, read from the deepest Uniswap v3 pool with the pool, fee tier and a thin-liquidity flag. Use for a token price API call in a quote, a portfolio valuation or a trade check.

BasePolygonArbitrumSolanaAnswering
GEThttps://agent-data-tools.revmesh2074.workers.dev/token-price-api

Uptime100% of 2 checks 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://agent-data-tools.revmesh2074.workers.dev/token-price-api?symbol=ETH");
console.log(await res.json());

Example input

{
  "symbol": "ETH"
}