x402 PROTOCOL / USDC ON BASE / PER‑REQUEST PRICING

Your AI agent pays for market data
like it pays for compute.

Real-time SMA and candlestick pattern recognition for BTC, Gold, BONK, and SC.
No API keys. No accounts. Just a wallet and a request.

GET /api/v1/ta/btc/sma?period=50 ← 402 Payment Required · $0.005 USDC # Agent pays, retries, receives: "sma_50": 67420.18 "timestamp": "2026-05-24T16:00:00Z"
HOW IT WORKS

Three steps. No friction.

01

Request

Your AI agent calls any endpoint. The server responds with HTTP 402 and a signed payment challenge containing amount, destination address, and a cryptographic nonce.

02

Pay

The agent signs a gasless USDC transfer on Base L2 using EIP‑3009. Coinbase's facilitator broadcasts the transaction. The agent receives a transaction hash.

03

Receive

The agent retries the request with the signed payment header. The server verifies on-chain, logs the hash to Neon, and delivers the data. Sub‑second settlement.

~$0.005 per request
~200ms settlement time
$0 infrastructure gas cost
Base L2 settlement network
API ENDPOINTS

Purpose‑built for autonomous agents.

GET /api/v1/ta/:asset/sma

Simple Moving Average for any supported asset and period. Calculated from live OHLCV data.

assetbtc · gold · bonk · sc period5 · 20 · 50 · 200
RESPONSE { "sma": 67420.18, "period": 50, "asset": "btc" }
GET /api/v1/ta/:asset/patterns

Candlestick pattern recognition. Detects Doji, Hammer, Engulfing, Morning Star, and more across multiple timeframes.

assetbtc · gold · bonk · sc timeframe1h · 4h · 1d
RESPONSE { "patterns": [{ "type": "doji", "confidence": 0.87 }] }
GET /.well-known/x402

Machine‑readable payment manifest. AI agents discover pricing, accepted tokens, and revenue address automatically. OpenAPI spec at /openapi.json.

DISCOVERY Auto‑parsed by any x402‑compatible agent
SUPPORTED ASSETS

High‑velocity markets. Real‑time data.

Bitcoin BTC The most liquid crypto asset. Critical for cross‑agent signal consensus.
Gold XAU Macro hedge and volatility reference for multi‑asset agents.
Bonk BONK High‑velocity Solana memecoin. Tests agent reaction speed under volatility.
Siacoin SC Storage blockchain asset. Lower correlation with BTC, useful for diversification signals.

The agent economy is here. Every AI agent that trades, hedges, or monitors crypto markets needs reliable technical data — paid for autonomously, in real time, onchain.

SignalLayer is that data layer.