FAQ
General
What is 4SEC?
4SEC is a multi-DEX aggregated crypto market data API. It provides real-time prices, arbitrage detection, volume data, and risk metrics from 8+ DEXes across multiple chains. Payment is pay-as-you-go via the x402 protocol using USDC on Base.
How is 4SEC different from CoinGecko or CoinMarketCap?
CoinGecko and CoinMarketCap primarily aggregate centralized exchange (CEX) data. 4SEC focuses on decentralized exchange (DEX) data with:
- Real-time on-chain prices (not reported volumes)
- Cross-DEX arbitrage detection
- Volume-weighted aggregation across DEXes
- No signup, no API keys, pay per request
Which chaiorted?
Chains: Base (primary), Ethereum, Arbitrum, BSC
DEXes: Uniswap V3, SushiSwap, Curve, BaseSwap, Aerodrome, PancakeSwap V3, Balancer V2, Camelot
Which tokens are supported?
BTC, ETH, SOL, ARB, OP, MATIC, AVAX, DOT, LINK, UNI
More tokens are added regularly. Check GET /health for the current list.
Pricing
How much does it cost?
$0.01 to $0.05 per request depending on the endpoint. See Pricing for full details.
Do I need a subscription?
No. 4SEC is pure pay-as-you-go. Pay per request with USDC on Base. No monthly fees, no commitments.
Is there a free tier?
GET /health and GET / are always free. Also, identical requests within 30 seconds are served from cache at no cost.
What happens if I run out of USDC?
Paid requests will return 402 Payment Required. Simply add more USDC to your wallet on Base to continue.
Technical
What is x402?
x402 is an HTTP payment protocol for machine-to-machine micropayments. The server returns HTTP 402 with payment requirements, the client pays with USDC and retries. See How x402 Works.
Do I need an API key?
No. Just an Ethereum wallet with USDC on Base network. The x402 client handles everything automatically.
What is the rate limit?
100 requests per minute per wallet address (standard). 1000 req/min for premium users. Cached responses within 30s do not count.
How fresh is the data?
30-second cache TTL. Data is at most 30 seconds old. For real-time trading, the 30s freshness is sufficient for most strategies.
Can I use 4SEC with AI agents?
Yes! 4SEC is designed for AI agents. The x402 protocol enables autonomous payment without human intervention. See AI Agent Integration.
Is there a Python SDK?
Yes. Install with pip install x402-client. See Python SDK.
Is there a JavaScript SDK?
Yes. Install with npm install @x402/client. See JavaScript SDK.
Security
Is my private key safe?
Yes. Your private key never leaves your machine. Payment is signed locally using EIP-712 and sent as proof. The API never has access to your key.
Can someone steal my USDC?
No. Each payment is for a specific amount to a specific recipient with a unique nonce. Even if intercepted, the payment can only be used for that specific request.
Support
How do I get help?
- GitHub Issues: https://github.com/foursec/issues
- Discord: https://discord.gg/foursec
- Email: support@foursec.xyz
Is there a status page?
Yes: https://status.foursec.xyz
Can I request new features or tokens?
Yes! Open a GitHub issue or message on Discord with your request.