4

402oracle · Verify Price

by 402oracle

POSTBaseArbitrumPolygon

$0.02

per call · USD Coin on Base

Confirm a crypto asset's price before your agent trades, quotes, or settles on it. A signed price oracle: cross-checks Coinbase, Kraken, and OKX for a median and flags divergence when sources disagree. Returns a signed attestation your agent can cite.

Endpoint

POST https://402oracle.com/verify/price

3

Calls / 30d

2

Unique payers / 30d

Aug 30

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://402oracle.com/verify/price", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "symbol": "BTC"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://402oracle.com/verify/price" \
  -H "Content-Type: application/json" \
  -d '{"symbol":"BTC"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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"
  }
}

Payment details

Pay to0x7a19cd388c7f69145fef09b960853e0a429b6f4a
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from 402oracle & similar services