A

Agentbit · Defi Price

by Agentbit

POSTBase

$0.002

per call · USD Coin on Base

Current token prices for up to 10 tokens per call, on any chain: address as <chain>:<address> (base:0x…, ethereum:0x…) or coingecko:<id> for majors. Aggregated market price with a confidence score and timestamp, from DefiLlama's open price engine. $0.002 — priced for agents that check before every trade.

Endpoint

POST https://agentbit.app/v1/defi/price

1

Calls / 30d

1

Unique payers / 30d

Sep 6

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agentbit.app/v1/defi/price", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "tokens": [
      "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "coingecko:ethereum"
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agentbit.app/v1/defi/price" \
  -H "Content-Type: application/json" \
  -d '{"tokens":["base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","coingecko:ethereum"]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "found": 2,
  "missing": {},
  "prices": [
    {
      "as_of": "2026-09-06T14:00:00+00:00",
      "confidence": 0.99,
      "decimals": 6,
      "price_usd": 0.9998,
      "symbol": "USDC",
      "token": "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
    },
    {
      "as_of": "2026-09-06T14:00:00+00:00",
      "confidence": 0.99,
      "decimals": null,
      "price_usd": 4123.55,
      "symbol": "ETH",
      "token": "coingecko:ethereum"
    }
  ],
  "source": "DefiLlama coins API (aggregated market price with confidence score)"
}

Payment details

Pay to0x4395c7e383b7e05665aad7f36ed77c01923dd965
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Agentbit & similar services