📊
Multi-DEX Aggregation
Volume-weighted prices from Uniswap, SushiSwap, Curve, BaseSwap, and 4 more.
Real-time prices, arbitrage detection, and risk metrics from 8+ DEXes. Pay per request with USDC on Base via x402.
Install the x402 client and start fetching data in under 5 minutes.
from x402.client import X402Client
from eth_account import Account
wallet = Account.from_key("0x...your_private_key...")
client = X402Client(wallet=wallet)
response = client.get("https://api.foursec.xyz/price/ETH")
data = response.json()
print(f"ETH: ${data['price_usd']}") # ETH: $2450.32| Endpoint | Cost | Notes |
|---|---|---|
GET /price/:symbol | $0.01 | Real-time aggregated price |
GET /price/history/:symbol | $0.02 | Historical OHLCV data |
GET /volume/:symbol | $0.01 | 24h volume data |
GET /spread/:pair | $0.01 | Bid/ask spread |
GET /arbitrage-opportunity | $0.03 | Cross-DEX arbitrage scanner |
GET /volatility-index/:symbol | $0.02 | Risk metrics |
POST /price-alert | $0.05 | Create webhook alert |
GET /health | Free | Health check |
All payments in USDC on Base via x402 protocol. No subscriptions, no API keys.
| DEX | Chain | Pairs |
|---|---|---|
| Uniswap V3 | Base, Ethereum | ETH/USDC, BTC/USDC |
| SushiSwap | Base, Ethereum | ETH/USDC, ETH/USDT |
| Curve | Ethereum | 3pool, ETH/stETH |
| BaseSwap | Base | ETH/USDC, BASE/ETH |
| Aerodrome | Base | ETH/USDC, AERO/ETH |
| PancakeSwap V3 | Base, BSC | ETH/USDC, BNB/USDC |
| Balancer V2 | Ethereum | ETH/USDC, WBTC/ETH |
| Camelot | Arbitrum | ETH/USDC, ARB/ETH |