81trust / 100
Verify Price
by 402oracle in Onchain & crypto
x402 APIPassing, checked 46 min ago
Crypto price check: the current spot price of Bitcoin (BTC), Ethereum (ETH), Solana (SOL) or any token ticker in USD, cross-checked across five exchanges (Coinbase, Kraken, OKX, Binance, CoinGecko). Returns the median price, the spread between venues and a divergence flag, as a signed price oracle attestation your agent can cite. Use it before your agent trades, quotes, values a portfolio or settles on a token price. Needs at least two live quotes; a ticker no venue lists is not charged.
POST https://402oracle.com/verify/price
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 171 ms typical, 171 ms slowest 5%
- Last check
- 46 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://402oracle.com/verify/price" \
-H "content-type: application/json" \
-d '{"symbol":"BTC"}'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%2F402oracle.com%2Fverify%2Fprice
const res = await pay("https://402oracle.com/verify/price", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"symbol":"BTC"}),
});
console.log(await res.json());Example input
{
"symbol": "BTC"
}Example output
{
"attestation": {
"confidence": 0.95,
"result": {
"divergent": false,
"median_usd": 67012.4,
"sources": [
"coinbase",
"kraken",
"okx"
],
"verdict": "confirmed"
},
"subject": {
"quote": "USD",
"symbol": "BTC"
},
"type": "price_verification"
},
"signature": {
"alg": "ES256",
"jwks": "/.well-known/jwks.json"
}
}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 |
|---|---|---|---|---|
| 46 min ago | Passed | 402 | 171 ms | $0.02 |
| 6 h ago | Passed | 402 | 248 ms | $0.02 |