82trust / 100
Stablecoin Peg
by Stablecoin peg monitor in Onchain & crypto
x402 APIPassing, checked 7 min ago
Live $1-peg deviation for the top USD stablecoins (USDT, USDC, USDS, DAI, USDe, PYUSD, USDD, TUSD, FDUSD by default, or pass your own list): current price, deviation in basis points, 24h high/low, worst 24h deviation, market cap, and an on-peg / stressed / depegged status. Backed by CoinGecko's public API.
GET https://agent402.tools/api/stablecoin-peg
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 185 ms typical, 200 ms slowest 5%
- Last check
- 7 min ago
- Next check
- in 26 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/stablecoin-peg"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%2Fagent402.tools%2Fapi%2Fstablecoin-peg
const res = await pay("https://agent402.tools/api/stablecoin-peg");
console.log(await res.json());Example input
{}Example output
{
"coins": [
{
"deviationBps": -11.32,
"high24h": 0.999372,
"id": "tether",
"low24h": 0.998674,
"marketCap": 184092462233,
"maxDeviation24hBps": 13.26,
"name": "Tether",
"price": 0.998868,
"status": "on-peg",
"symbol": "USDT"
},
{
"deviationBps": -1.81,
"high24h": 0.999923,
"id": "usd-coin",
"low24h": 0.99953,
"marketCap": 73033499074,
"maxDeviation24hBps": 4.7,
"name": "USDC",
"price": 0.999819,
"status": "on-peg",
"symbol": "USDC"
}
],
"count": 2,
"peg": "USD $1.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 |
|---|---|---|---|---|
| 7 min ago | Passed | 402 | 410 ms | $0.003 |
| 3 h ago | Passed | 402 | 184 ms | $0.003 |
| 6 h ago | Passed | 402 | 200 ms | $0.003 |
| 11 h ago | Passed | 402 | 185 ms | $0.003 |