AgentBIT
← all tools

Stablecoin Stats & Peg Monitor

Stablecoin monitoring for the agent economy — where every payment IS a stablecoin. Returns the tracked stablecoin universe (circulating supply ≥ $1M) ranked by market cap, each with: name, symbol, peg type and mechanism (fiat-backed, crypto-backed, algorithmic — the risk hierarchy), circulating USD, current price and the computed peg_deviation_percent ((price−1)×100 for USD pegs; positive above peg, negative below). Two modes: look up specific coins by symbol (USDC, USDT, DAI), or DEPEG SCREENING — set max_peg_deviation_percent and get only coins whose absolute deviation is at least that value, the early-warning check an agent should run before accepting or holding a settlement currency. Data from DefiLlama's open stablecoins API, cached server-side and refreshed every 10 minutes. Pairs with token-price (any token) and fx (fiat rates).

$0.002
USDC per call · x402
Endpoint
POST /v1/defi/stablecoins
MCP name
agentbit.stablecoin_stats
Status
active
Latency / uptime (7d)
39 ms · 100%

Call with x402

1. Send the request. 2. Receive 402 with accepts[]. 3. Sign the payment and retry with the X-PAYMENT header.

curl -X POST https://agentbit.app/v1/defi/stablecoins \
  -H 'Content-Type: application/json' \
  -d '{"symbol":"USDC"}'

Input schema

{
    "type": "object",
    "properties": {
        "symbol": {
            "type": "string",
            "description": "Filter by symbol substring, e.g. USDC"
        },
        "max_peg_deviation_percent": {
            "type": "number",
            "description": "Depeg screen: only coins with ABSOLUTE deviation >= this value (e.g. 0.5)"
        },
        "limit": {
            "type": "integer",
            "description": "Max results (1-50, default 15)"
        }
    }
}

Output schema

{
    "type": "object",
    "properties": {
        "result_count": {
            "type": "integer"
        },
        "stablecoins": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "symbol": {
                        "type": "string"
                    },
                    "peg_type": {
                        "type": "string"
                    },
                    "peg_mechanism": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "circulating_usd": {
                        "type": "number"
                    },
                    "price": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "peg_deviation_percent": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "chains": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "universe_size": {
            "type": "integer"
        },
        "note": {
            "type": "string"
        }
    }
}

Code examples

// JavaScript (x402-fetch)
import { wrapFetchWithPayment } from "x402-fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, wallet);
const r = await fetchWithPay("https://agentbit.app/v1/defi/stablecoins", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"symbol":"USDC"})
});
console.log(await r.json());
# Python (x402 client)
from x402.clients.requests import x402_requests
s = x402_requests(account)
r = s.post("https://agentbit.app/v1/defi/stablecoins",
  json={"symbol":"USDC"})
print(r.json())
// PHP
$r = Http::withHeaders(['X-PAYMENT' => $signedPayment])
  ->post('https://agentbit.app/v1/defi/stablecoins',
    array (
  'symbol' => 'USDC',
));
$data = $r->json();