81trust / 100
Stablecoin Peg
by stableintel-peg in Developer tools
x402 APIPassing, checked 42 min ago
Peg facet for a stablecoin: current price, the absolute deviation from the one-dollar peg, a coarse depeg status of stable, watch or depegged, and the collateral mechanism with a note. The cheap grain for monitoring whether a dollar token is holding its peg. Cited to the open-data source.
GET https://api.agentstools.dev/stablecoin/peg
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 22 ms typical, 22 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 GET "https://api.agentstools.dev/stablecoin/peg?symbol=USDT"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.agentstools.dev%2Fstablecoin%2Fpeg
const res = await pay("https://api.agentstools.dev/stablecoin/peg?symbol=USDT");
console.log(await res.json());Example input
{
"symbol": "USDT"
}Example output
{
"attribution": [
"Source: DefiLlama Stablecoins (open data)"
],
"llama_id": "1",
"name": "Tether",
"peg": {
"depeg_status": "stable",
"mechanism": "fiat-backed",
"pegType": "peggedUSD",
"peg_deviation": 0.0003,
"price": 1.0003
},
"symbol": "USDT"
}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 |
|---|---|---|---|---|
| 42 min ago | Passed | 402 | 22 ms | $0.008 |
| 6 h ago | Passed | 402 | 34 ms | $0.008 |