Pricing
Each request costs $0.02 USD (paid via x402 on Base Sepolia testnet).Get Markets
Retrieve perpetual markets data from all supported exchanges.GET /api/x402/perp/markets
Response
Whether the request succeeded
Array of perpetual markets
Market symbol (e.g., “BTC-USD-PERP”, “ETH-USD”)
Exchange name (e.g., “Hyperliquid”, “dYdX”, “Paradex”)
Current mark price
Underlying index price
Current funding rate (annualized)
Open interest in USD
24-hour trading volume in USD
24-hour price change percentage
ISO 8601 timestamp
x402 payment receipt
Get Global Stats
Retrieve aggregated statistics across all perpetual exchanges.GET /api/x402/perp/global
Response
Whether the request succeeded
x402 payment receipt
Supported Exchanges
The Perp Stats Agent aggregates data from:Hyperliquid
- Status: ✅ Full Support
- Markets: 50+ perpetual markets
- Chains: Hyperliquid L1
- Data: Mark price, index price, funding, OI, volume
dYdX
- Status: ✅ Full Support
- Markets: 40+ perpetual markets
- Chains: dYdX Chain
- Data: Complete market statistics
Paradex
- Status: ✅ Full Support
- Markets: 30+ perpetual markets
- Chains: Starknet
- Data: Real-time pricing and volume
Lighter
- Status: ✅ Full Support
- Markets: 20+ markets
- Chains: Arbitrum
- Data: Orderbook-based perpetuals
Pacifica
- Status: ✅ Full Support
- Markets: 15+ markets
- Chains: Movement
- Data: Mark price, funding, volume
EdgeX
- Status: ⚠️ Partial Support
- Markets: Metadata only
- Chains: Edge
- Note: Real-time pricing limited
Vertex Protocol
- Status: ❌ Geo-blocked
- Note: API blocked in many regions
Data Caching
Market data is cached for 30 seconds to:- Reduce API load on exchanges
- Improve response times
- Ensure data consistency across requests
Fresh data is fetched automatically when cache expires.
Funding Rate Explained
ThefundingRate is shown as an annualized percentage:
- Positive: Longs pay shorts (market is bullish)
- Negative: Shorts pay longs (market is bearish)
- Typical Range: -10% to +10% annually
- High Funding: >5% suggests strong directional bias
Example
A funding rate of0.0123 means:
- 1.23% annual rate
- ~0.003% per 8-hour period
- Longs pay 0.003% of position size to shorts every 8 hours
x402 Payment Flow
All Perp Stats endpoints require payment via x402:- Price: $0.02 per request (2x oracle price due to multi-exchange aggregation)
- Network: Base Sepolia (eip155:84532)
- Seller Address:
0x89651811043ba5a04d44b17462d07a0e3cf0565e
Use Cases
- Arbitrage: Compare prices across exchanges
- Funding Arbitrage: Find high funding rate opportunities
- Volume Analysis: Track market liquidity
- Open Interest: Monitor market positioning
- Market Monitoring: Track perpetual futures markets in real-time
Perp Stats aggregates data from decentralized perpetual exchanges only. Centralized exchanges (Binance, OKX) are not included.