81trust / 100

Defi Stablecoins

by agentbit.app in Markets & finance

x402 APIPassing, checked 42 min ago

Stablecoin market data with the number agents paying in USDC actually need: current price and PEG DEVIATION per coin, circulating supply, peg mechanism and chains, ranked by market cap. Filter by symbol or screen for depegs (absolute deviation above a threshold). Open DefiLlama data, refreshed every 10 minutes.

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

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentbit.app/v1/defi/stablecoins" \
  -H "content-type: application/json" \
  -d '{"symbol":"USDC"}'
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%2Fagentbit.app%2Fv1%2Fdefi%2Fstablecoins
const res = await pay("https://agentbit.app/v1/defi/stablecoins", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"symbol":"USDC"}),
});
console.log(await res.json());

Example input

{
  "symbol": "USDC"
}

Example output

{
  "note": "peg_deviation_percent = (price - 1.00) * 100 for USD-pegged assets.",
  "result_count": 1,
  "stablecoins": [
    {
      "chains": [
        "Ethereum",
        "Base",
        "Solana"
      ],
      "circulating_usd": 72000000000,
      "name": "USD Coin",
      "peg_deviation_percent": -0.02,
      "peg_mechanism": "fiat-backed",
      "peg_type": "peggedUSD",
      "price": 0.9998,
      "symbol": "USDC"
    }
  ],
  "universe_size": 180
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
42 min agoPassed40293 ms$0.002
6 h agoPassed40279 ms$0.002