82trust / 100

Crypto Price

by TBS Crypto & DeFi API in Onchain & crypto

x402 APIPassing, checked 59 min ago

Real-time crypto token spot prices for AI agents and trading bots. Returns USD price, token symbol, and DefiLlama price confidence per coin. Query by DefiLlama coin key (coingecko:ethereum) or common ticker (btc, eth, sol, usdc, usdt) — batch up to 50 coins in one call. Keyless, unified schema, stablecoin-payable.

GET https://x402.tbs-digital.com/crypto/price

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
128 ms typical, 128 ms slowest 5%
Last check
59 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.tbs-digital.com/crypto/price?symbols=btc%2Ceth"
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%2Fx402.tbs-digital.com%2Fcrypto%2Fprice
const res = await pay("https://x402.tbs-digital.com/crypto/price?symbols=btc%2Ceth");
console.log(await res.json());

Example input

{
  "symbols": "btc,eth"
}

Example output

{
  "generated_at": "2026-08-11T12:00:00.000Z",
  "payer": {
    "address": "0x0000000000000000000000000000000000000000",
    "network": "base"
  },
  "prices": [
    {
      "coin": "coingecko:ethereum",
      "confidence": 0.99,
      "observed_at": "2026-08-11T12:00:00.000Z",
      "price_usd": 3542.18,
      "symbol": "ETH"
    }
  ],
  "request_id": "0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55",
  "source": "defillama"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
59 min agoPassed402261 ms$0.001
6 h agoPassed402128 ms$0.001