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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Amount "0.004" is not in atomic token units | 402 | 134 ms | $0.004 |
| 7 h ago | Amount "0.004" is not in atomic token units | 402 | 78 ms | $0.004 |
| 11 h ago | Amount "0.004" is not in atomic token units | 402 | 114 ms | $0.004 |
| 15 h ago | Amount "0.004" is not in atomic token units | 402 | 82 ms | $0.004 |
| 19 h ago | Amount "0.004" is not in atomic token units | 402 | 77 ms | $0.004 |
| 23 h ago | Amount "0.004" is not in atomic token units | 402 | 81 ms | $0.004 |
| 28 h ago | Amount "0.004" is not in atomic token units | 402 | 204 ms | $0.004 |
| 32 h ago | Amount "0.004" is not in atomic token units | 402 | 245 ms | $0.004 |
| 35 h ago | Amount "0.004" is not in atomic token units | 402 | 238 ms | $0.004 |
| 40 h ago | Amount "0.004" is not in atomic token units | 402 | 86 ms | $0.004 |
| 43 h ago | Amount "0.004" is not in atomic token units | 402 | 106 ms | $0.004 |
| 2 days ago | Amount "0.004" is not in atomic token units | 402 | 76 ms | $0.004 |
| 2 days ago | Amount "0.004" is not in atomic token units | 402 | 81 ms | $0.004 |
| 2 days ago | Amount "0.004" is not in atomic token units | 402 | 186 ms | $0.004 |
| 3 days ago | Amount "0.004" is not in atomic token units | 402 | 89 ms | $0.004 |