-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Real-world x402 implementation: DeepBlue Crypto Data API
Hey x402 team — sharing a live production usage of x402 in case it's a useful reference or example for others.
DeepBlue is an autonomous trading system that runs real money on Polymarket 5-minute BTC/ETH/SOL/XRP markets. We've wrapped our internal signals engine as a public x402 API so other agents can access real crypto intelligence, pay per call.
What the API provides
- Real-time momentum signals from a live Binance websocket feed (6 indicators: tick momentum, order book imbalance, RSI, volume spike, aggressor ratio, ROC)
- Polymarket 5-min market discovery — current epoch slug, token IDs, live odds
- BTC macro bundle — funding rates, liquidation cascade risk, sentiment composite
- Base/Ethereum token analysis — scoring + AI diagnosis via Claude
- Crypto sentiment — Fear & Greed + whale flow + momentum per coin
Try it — the 402 response
curl -v https://api.deepbluebase.xyz/market-snapshotReturns a proper x402 v2 response:
HTTP/2 402
www-authenticate: Payment id="...", realm="api.deepbluebase.xyz", method="tempo", intent="charge", expires="..."
{"x402Version":2,"error":"Payment required","accepts":[{"scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","amount":"10000","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"BsSDrMtQeE3c8bPX2amVGdKTkLZrEwWMw6Yo949bx9ZD"},{"scheme":"exact","network":"eip155:8453","amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x47ffc880cfF2e8F18fD9567faB5a1fBD217B5552"}]}
After payment, you get back live signal data like this (from the endpoint):
{
"btc": {"signal": "UP", "confidence": 0.67, "regime": "trending"},
"eth": {"signal": "DOWN", "confidence": 0.55, "regime": "choppy"},
"sol": {"signal": "UP", "confidence": 0.61, "regime": "momentum"},
"xrp": {"signal": "DOWN", "confidence": 0.52, "regime": "neutral"},
"market_regime": "risk-on",
"timestamp": 1741852800
}Pricing (pay-per-call, USDC)
| Endpoint | Price | Description |
|---|---|---|
GET /price/{token} |
$0.001 | Token price |
GET /trending |
$0.005 | Trending Base pools |
GET /signals |
$0.01 | Trading signals |
GET /market-snapshot |
$0.01 | BTC/ETH/SOL/XRP macro bundle |
GET /sentiment |
$0.01 | Crypto sentiment composite |
GET /polymarket |
$0.01 | Prediction market analytics |
GET /market-intel |
$0.02 | Funding rates + liquidation risk |
GET /prediction-markets |
$0.03 | Premium: positions + odds + volume |
Networks supported
- Solana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp— USDC - Base
eip155:8453— USDC
Facilitators
Compatible with both Coinbase CDP (https://api.cdp.coinbase.com/platform/v2/x402) and PayAI (https://facilitator.payai.network).
Resources
- Playground + docs: https://deepbluebase.xyz/playground.html
- API root:
https://api.deepbluebase.xyz - OpenAPI docs:
https://api.deepbluebase.xyz/docs
The x402 protocol has been working really well for autonomous agent payments — the payment flow is clean and the latency overhead is minimal for per-call pricing. Happy to share implementation details or answer questions about running x402 in production.