Live API — Real Data

API Playground

Every endpoint below returns real data from our live trading bots. Click to expand, see the response, copy the curl command, and start building.

Make your first paid call in 3 steps

x402 = HTTP 402 payments. Your agent pays USDC per call — no API key needed.

1

Get a wallet

You need USDC on Base or Solana. Use Coinbase, Phantom, or any wallet.

2

Install x402 client

npm i x402-next
Or use AgentCash for agent wallets.

3

Make a call

Hit any endpoint below. The x402 client handles payment automatically.

JavaScript — x402 SDK
import { paymentMiddleware } from 'x402-next'; // The SDK auto-handles 402 responses and pays in USDC const response = await fetch('https://api.deepbluebase.xyz/signals', { headers: paymentMiddleware({ wallet: yourWallet }) }); const data = await response.json(); // → { signals: [{ coin: "BTC", direction: "UP", confidence: 0.65 }, ...] }
Python — free preview (no wallet needed)
import requests # Without payment: returns 402 with sample data (free preview) r = requests.get("https://api.deepbluebase.xyz/signals") if r.status_code == 402: preview = r.json() # includes "sample" field with preview data print(preview["sample"]) print(f"Price: ${preview['price_usdc']}")

Try every endpoint

Click to expand. Each shows a live sample response and copy-paste curl command. Hit "Try it" to fetch live data.

GET /signals Signals
$0.01

Live BTC/ETH/SOL/XRP 5-min trading signals from our autonomous trading bot. Includes direction, confidence score, and market regime.

curl https://api.deepbluebase.xyz/signals
import requests

r = requests.get("https://api.deepbluebase.xyz/signals")
if r.status_code == 402:
    data = r.json()
    print(data["sample"])  # free preview
    print(f"Full data costs ${data['price_usdc']}")
const resp = await fetch("https://api.deepbluebase.xyz/signals");
const data = await resp.json();

if (resp.status === 402) {
  console.log(data.sample);   // free preview
  console.log(`Full data: $${data.price_usdc}`);
}
Sample Response
{ "signals": [ { "coin": "BTC", "direction": "UP", "confidence": 0.65, "regime": "trending" } ], "count": 4 }
GET /sentiment AI
$0.01

Crypto sentiment composite: technical indicators, regime detection, and sentiment scores for BTC/ETH/SOL/XRP.

curl https://api.deepbluebase.xyz/sentiment
import requests

r = requests.get("https://api.deepbluebase.xyz/sentiment")
data = r.json()
if r.status_code == 402:
    sentiment = data["sample"]
    print(f"Market: {sentiment['market_sentiment']['label']}")
    for coin in sentiment["coins"]:
        print(f"  {coin['coin']}: {coin['direction']} ({coin['sentiment_score']})")
const resp = await fetch("https://api.deepbluebase.xyz/sentiment");
const data = await resp.json();

if (resp.status === 402) {
  const { market_sentiment, coins } = data.sample;
  console.log(`Market: ${market_sentiment.label}`);
  coins.forEach(c => console.log(`  ${c.coin}: ${c.direction}`));
}
Sample Response
{ "market_sentiment": { "score": 0.35, "label": "bullish", "bullish_coins": 3 }, "coins": [ { "coin": "BTC", "sentiment_score": 0.42, "direction": "UP" } ] }
GET /performance Data
$0.01

On-chain verified trading performance, P&L, and win rate from our Polymarket trading bots.

curl https://api.deepbluebase.xyz/performance
import requests

r = requests.get("https://api.deepbluebase.xyz/performance")
data = r.json()
if r.status_code == 402:
    perf = data["sample"]
    print(f"P&L: ${perf['total_pnl']} | Win rate: {perf['win_rate']:.1%}")
    print(f"Total trades: {perf['total_trades']}")
const resp = await fetch("https://api.deepbluebase.xyz/performance");
const data = await resp.json();

if (resp.status === 402) {
  const { total_pnl, win_rate, total_trades } = data.sample;
  console.log(`P&L: $${total_pnl} | Win: ${(win_rate*100).toFixed(1)}%`);
  console.log(`Trades: ${total_trades}`);
}
Sample Response
{ "total_pnl": 335.42, "win_rate": 0.681, "total_trades": 2180, "daily": [...] }
GET /price/{token} Data
$0.001

Real-time token price from Base DEX pools.

Token:
BTC ETH SOL XRP
curl https://api.deepbluebase.xyz/price/BTC
import requests

token = "BTC"  # or ETH, SOL, XRP
r = requests.get(f"https://api.deepbluebase.xyz/price/{token}")
data = r.json()
if r.status_code == 402:
    price = data["sample"]
    print(f"{price['token']}: ${price['price_usd']}")
const token = "BTC";  // or ETH, SOL, XRP
const resp = await fetch(`https://api.deepbluebase.xyz/price/${token}`);
const data = await resp.json();

if (resp.status === 402) {
  console.log(`${data.sample.token}: $${data.sample.price_usd}`);
}
Sample Response
{ "token": "BTC", "price_usd": 84250.00, "source": "base_dex" }
GET /trending Data
$0.005

Trending tokens and DEX pools on Base chain — volume, price change, and pool data.

Sample Response
{ "pools": [ { "token": "ETH", "volume_24h": 1200000, "price_change_pct": 3.2 } ], "count": 10 }
GET /polymarket Signals
$0.01

Prediction market analytics — active positions, odds, and volume from Polymarket.

curl https://api.deepbluebase.xyz/polymarket
import requests

r = requests.get("https://api.deepbluebase.xyz/polymarket")
data = r.json()
if r.status_code == 402:
    print(data["sample"])  # positions, odds, volume
const resp = await fetch("https://api.deepbluebase.xyz/polymarket");
const data = await resp.json();

if (resp.status === 402) {
  console.log(data.sample);  // positions, odds, volume
}
GET /token/{address} AI
$0.01

AI-powered token analysis and safety score for any Base contract address.

Address:
USDC WETH
curl https://api.deepbluebase.xyz/token/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
import requests

addr = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"  # USDC on Base
r = requests.get(f"https://api.deepbluebase.xyz/token/{addr}")
data = r.json()
if r.status_code == 402:
    print(data["sample"])  # safety score, analysis
const addr = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";  // USDC on Base
const resp = await fetch(`https://api.deepbluebase.xyz/token/${addr}`);
const data = await resp.json();

if (resp.status === 402) {
  console.log(data.sample);  // safety score, analysis
}
GET /wallet/{address} Data
$0.01

Wallet scan and analysis — holdings, activity, and risk assessment.

Wallet:
curl https://api.deepbluebase.xyz/wallet/0x47ffc880cfF2e8F18fD9567faB5a1fBD217B5552
import requests

wallet = "0x47ffc880cfF2e8F18fD9567faB5a1fBD217B5552"
r = requests.get(f"https://api.deepbluebase.xyz/wallet/{wallet}")
data = r.json()
if r.status_code == 402:
    print(data["sample"])  # holdings, activity, risk
const wallet = "0x47ffc880cfF2e8F18fD9567faB5a1fBD217B5552";
const resp = await fetch(`https://api.deepbluebase.xyz/wallet/${wallet}`);
const data = await resp.json();

if (resp.status === 402) {
  console.log(data.sample);  // holdings, activity, risk
}
GET /market-intel Premium
$0.02

BTC macro analysis, funding rates, and liquidation cascade risk assessment.

curl https://api.deepbluebase.xyz/market-intel
import requests

r = requests.get("https://api.deepbluebase.xyz/market-intel")
data = r.json()
if r.status_code == 402:
    print(data["sample"])  # macro analysis, funding, liquidation risk
const resp = await fetch("https://api.deepbluebase.xyz/market-intel");
const data = await resp.json();

if (resp.status === 402) {
  console.log(data.sample);  // macro analysis, funding, liquidation risk
}
GET /prediction-markets Premium
$0.03

Premium prediction market intelligence — positions, odds, volume, and market analysis.

curl https://api.deepbluebase.xyz/prediction-markets
import requests

r = requests.get("https://api.deepbluebase.xyz/prediction-markets")
data = r.json()
if r.status_code == 402:
    print(data["sample"])  # positions, odds, volume
const resp = await fetch("https://api.deepbluebase.xyz/prediction-markets");
const data = await resp.json();

if (resp.status === 402) {
  console.log(data.sample);  // positions, odds, volume
}
GET /crypto-sentiment Premium
$0.03

Premium sentiment — funding rates, liquidation risk, regime detection, and full composite.

curl https://api.deepbluebase.xyz/crypto-sentiment
import requests

r = requests.get("https://api.deepbluebase.xyz/crypto-sentiment")
data = r.json()
if r.status_code == 402:
    print(data["sample"])  # funding, liquidation, regime, composite
const resp = await fetch("https://api.deepbluebase.xyz/crypto-sentiment");
const data = await resp.json();

if (resp.status === 402) {
  console.log(data.sample);  // funding, liquidation, regime, composite
}

How x402 payment works

No API keys. No subscriptions. Just USDC micropayments per call.

1

Call any endpoint

Send a regular GET request. If unpaid, you get HTTP 402 with a free preview in the sample field.

2

x402 handles payment

The 402 response includes payment details. The x402 SDK or AgentCash automatically signs a USDC transfer.

3

Get full data

Payment confirmation is sent as a header. You get the complete response with full live data.

Supported payment methods
Base (EVM)
USDC at 0x8335...02913
Pay to: 0x47ff...b5552
Solana
USDC (SPL)
Pay to: BssD...x9ZD