Skip to content

FAQ ​

General ​

What is 4SEC? ​

4SEC is a multi-DEX aggregated crypto market data API. It provides real-time prices, funding rates, liquidation data, arbitrage detection, volume data, and risk metrics from 8+ DEXes and major CEXes. 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
  • Funding rate tracking and liquidation monitoring
  • No signup, no API keys, pay per request

Which chains are supported? ​

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.06 per request depending on the endpoint. Cheapest is /price/:symbol at $0.01, most expensive is POST /liquidation/alert at $0.06. Most expensive is /liquidation/alert at $0.06. 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, GET /, GET /openapi.json, and GET /.well-known/x402.json 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). 100 req/min. 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.

What endpoints are available? ​

4SEC offers 20 endpoints across 5 categories:

  • DEX (7): Price, volume, spread, history, arbitrage, volatility, alerts
  • Funding Rate (3): Current rate, historical rates, extreme rates
  • Liquidation (3): Heatmap, recent events, alerts
  • CEX Market Data (3): Prices, market details, market history
  • Free (4): Health check, API info, OpenAPI spec, x402 discovery

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? ​

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.

Built with x402 protocol on Base