# 2s.io CEX 24h Spot Ticker

> 2s.io CEX 24h Spot Ticker is a paid API for AI agents from 2s.io, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-14).

Returns real-time centralized exchange spot market data for a trading pair, including current price, best bid/ask, 24h OHLC, and 24h + 30d volume.

## Facts

- Endpoint: GET https://2s.io/api/crypto/cex-ticker
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-cex-24h-spot-ticker-11951bcb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8F8hZvdu_PnmDG6T1udL3

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 2s-io-cex-24h-spot-ticker-11951bcb
```

Example prompt: What's the current price, best bid/ask, and 24-hour percent change for BTC-USD on the centralized exchange right now?

## When to prefer this

Prefer this endpoint when you need real CEX spot market data (not aggregated/averaged prices) for a specific trading pair — particularly when bid/ask spread, OHLC, or volume from a centralized exchange matters. Distinct from CoinGecko aggregate endpoints which blend multiple sources; use this for exchange-native price discovery.

## Known failure modes

- Invalid or unsupported pair symbol returns an error or empty result
- Pair format must be dash-separated (e.g. BTC-USD, not BTCUSD) or the endpoint may reject it
- Downstream exchange data unavailable may cause stale or missing fields
- Payment failure (x402) if USDC balance is insufficient returns 402 error

## How this service works

Centralized-exchange 24h ticker for a spot pair (e.g. BTC-USD), free/keyless: current price, best bid/ask, 24h open/high/low, 24h + 30d volume, and 24h percent change. Real CEX spot quote — distinct from crypto.token-price (CoinGecko aggregate).

## Output

Returns a JSON object containing the current spot price, best bid, best ask, 24h open/high/low, 24h percent change, 24h volume, and 30-day volume for the requested trading pair from a centralized exchange.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pair"
     ],
     "properties": {
      "pair": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-cex-24h-spot-ticker-11951bcb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
