16trust / 100

Defillama Price

by Vextorium in Onchain & crypto

x402 APIFailing, checked 3 h ago

Token prices from DefiLlama's aggregated open oracle, by id 'chain:contract' (or 'coingecko:slug'), up to 20 at once. Returns symbol, USD price, decimals and a confidence score. Works for any on-chain token, not just top coins. Live from DefiLlama.

POST https://api.vextorium.com/v1/defillama-price

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
3 h ago: Amount "0.004" is not in atomic token units
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/defillama-price" \
  -H "content-type: application/json" \
  -d '{"coins":"ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,coingecko:bitcoin"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.vextorium.com%2Fv1%2Fdefillama-price
const res = await pay("https://api.vextorium.com/v1/defillama-price", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"coins":"ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,coingecko:bitcoin"}),
});
console.log(await res.json());

Example input

{
  "coins": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,coingecko:bitcoin"
}

Example output

{
  "not_found": [],
  "note": "Price aggregated from multiple sources by DefiLlama; 'confidence' close to 1 = reliable. Source: DefiLlama.",
  "prices": [
    {
      "confidence": 0.99,
      "decimals": 6,
      "id": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "price_usd": 0.999817132983207,
      "symbol": "USDC",
      "updated": "2026-09-30 13:00"
    },
    {
      "confidence": 0.99,
      "decimals": null,
      "id": "coingecko:bitcoin",
      "price_usd": 85248.11985758645,
      "symbol": "BTC",
      "updated": "2026-09-30 13:00"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoAmount "0.004" is not in atomic token units402134 ms$0.004
7 h agoAmount "0.004" is not in atomic token units40278 ms$0.004
11 h agoAmount "0.004" is not in atomic token units402114 ms$0.004
15 h agoAmount "0.004" is not in atomic token units40282 ms$0.004
19 h agoAmount "0.004" is not in atomic token units40277 ms$0.004
23 h agoAmount "0.004" is not in atomic token units40281 ms$0.004
28 h agoAmount "0.004" is not in atomic token units402204 ms$0.004
32 h agoAmount "0.004" is not in atomic token units402245 ms$0.004
35 h agoAmount "0.004" is not in atomic token units402238 ms$0.004
40 h agoAmount "0.004" is not in atomic token units40286 ms$0.004
43 h agoAmount "0.004" is not in atomic token units402106 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40276 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40281 ms$0.004
2 days agoAmount "0.004" is not in atomic token units402186 ms$0.004
3 days agoAmount "0.004" is not in atomic token units40289 ms$0.004