Skip to content
Fourohtwo

Crypto price and token price lookup

agentsvc.io/api/v1/proxy/crypto-prices

Crypto 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.

BaseSolanaPolygonArbitrumAnswering
POSThttps://agentsvc.io/api/v1/proxy/crypto-prices

Uptime100% of 4 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://agentsvc.io/api/v1/proxy/crypto-prices", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"coins":["bitcoin","ethereum"],"currencies":["usd"]}),
});
console.log(await res.json());

Example input

{
  "coins": [
    "bitcoin",
    "ethereum"
  ],
  "currencies": [
    "usd"
  ]
}

More from Crypto PriceProvider status