CRYPTO MARKET DATA
Real-time
Multi-DEX
Aggregated Prices
Access aggregated prices, arbitrage opportunities, and risk metrics from 8+ DEXes. Pay per request with USDC on Base via x402 protocol.
LIVE DEMO
GET /price/ETH
─────────────────────
"symbol": "ETH",
"price_usd": 2450.32,
"change_24h": +2.45%,
"sources": 3,
"spread": 0.07%,
"volume_24h": "$12.5M"FEATURES
Everything you need for crypto data
Multi-DEX Aggregation
Volume-weighted prices from Uniswap, SushiSwap, Curve, BaseSwap, and 4 more DEXes.
Arbitrage Detection
Real-time cross-DEX arbitrage opportunities with profit calculations and gas estimates.
Risk Metrics
Volatility, VaR, Sharpe ratio, and sentiment analysis for informed trading decisions.
Real-time Data
30-second cache TTL, 100 req/min rate limit. Fresh data for high-frequency trading.
Historical OHLCV
Candlestick data with 1m, 5m, 1h, 1d intervals. Up to 1 year history.
Price Alerts
Webhook notifications when price hits your target. Perfect for trading bots.
PRICING
Pay-as-you-go with x402
No subscriptions, no commitments. Pay per request with USDC on Base. Your wallet, your data.
- No API key required
- Pay with USDC on Base
- Auto-payment via x402 protocol
- 100 requests/minute rate limit
- 30-second cache (free retries)
Arbitrage endpoint
$0.03
per request
Historical data
$0.02
per request
Free endpoints
$0.00
/health, /
INTEGRATION
Get started in 5 minutes
# Install x402 client
pip install x402-client httpx
# Initialize with your wallet
from x402.client import X402Client
from eth_account import Account
wallet = Account.from_key("0x...")
client = X402Client(wallet=wallet)
# Make request (auto-payment)
response = client.get("https://api.foursec.xyz/price/ETH")
data = response.json()
print("ETH: $2450.32")
# Output: ETH: $2450.32How x402 Works
- 1.Your app requests data from API
- 2.API returns 402 Payment Required with payment details
- 3.x402 client signs USDC transfer from your wallet
- 4.Client retries request with payment proof
- 5.API verifies payment and returns data
💡 Pro tip:x402 client SDK handles all payment logic automatically. Just call .get() and it works!
STATS
Trusted by developers
150K+
API Requests
99.9%
Uptime
<100ms
Latency
8
DEXes
Ready to get started?
Start using 4SEC API today. No credit card, no signup form. Just connect your wallet and pay as you go.
✓ Free tier available
✓ No credit card required
✓ Pay with USDC on Base