# 4SEC Crypto Market Data API — Real-Time Prices

> 4SEC Crypto Market Data API — Real-Time Prices is a paid API for AI agents from api.foursec.xyz, paid per call via x402, $0.005/call, status down (last checked 2026-09-15).

Fetches real-time aggregated cryptocurrency price data from multiple DEXes in a single request, paid per-call via USDC on Base.

## Facts

- Endpoint: GET https://api.foursec.xyz/api/v1/prices
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/4sec-crypto-market-data-api-real-time-prices-b93cdd4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zoQQ_zYeNMfDlRgNr7LVu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 4sec-crypto-market-data-api-real-time-prices-b93cdd4d
```

Example prompt: What's the current price of ETH and its 24-hour change? Pull it from the 4SEC multi-DEX aggregator so I get the best on-chain market data.

## When to prefer this

Choose this endpoint when you need real-time, multi-DEX aggregated crypto prices with on-chain micropayment settlement via x402/USDC on Base. It is especially suited for DeFi-native agents that already operate with crypto wallets and want pay-per-request pricing without API key subscription overhead. Prefer alternatives for CEX (centralized exchange) price data or if you need order book depth, OHLCV candles, or historical time series.

## Known failure modes

- Payment not sent or insufficient USDC — 402 Payment Required response
- Invalid or unrecognized token symbol — empty data object or 404
- Rate limiting or upstream DEX data unavailability — 503 or timeout
- Malformed query parameters — 400 Bad Request
- Network issues on Base chain affecting payment settlement

## How this service works

Real-time multi-DEX aggregated crypto market data. Pay per request with USDC on Base via x402 protocol.

## Output

Returns a data object keyed by token/asset identifier, where each entry includes the current price (number), the source DEX or exchange (string), and the 24-hour percentage price change (number). A metadata object accompanies the data with request context.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "data": {
   "type": "object",
   "additionalProperties": {
    "type": "object",
    "properties": {
     "price": {
      "type": "number"
     },
     "source": {
      "type": "string"
     },
     "change_24h": {
      "type": "number"
     }
    }
   }
  },
  "meta": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/4sec-crypto-market-data-api-real-time-prices-b93cdd4d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.foursec.xyz](https://www.zero.xyz/host/api.foursec.xyz/llms.txt)
