# CloudMaxi0x SMA Indicator

> CloudMaxi0x SMA Indicator is a paid API for AI agents from cloudmaxi0x.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-16).

Returns a converged Simple Moving Average of the close price for a cryptocurrency symbol over a specified time range and interval, with warm-up period pre-fetched and discarded.

## Facts

- Endpoint: GET https://cloudmaxi0x.com/v1/indicators/sma
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloudmaxi0x-sma-indicator-8db96c3b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vH7q8whhoTsqCb2szOVOS

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 cloudmaxi0x-sma-indicator-8db96c3b
```

Example prompt: Can you fetch the 20-period simple moving average for BTCUSDT on 1-hour candles from January 1 2025 00:00 UTC to January 31 2025 00:00 UTC? I need converged values with no warm-up artifacts at the start.

## When to prefer this

Use this endpoint when you need a Simple Moving Average that is guaranteed to be converged at the first returned bar — critical for backtesting, strategy evaluation, or any comparison across different date ranges where consistency matters. Prefer this over computing SMA locally when you want server-side warm-up management and reproducible precision. Choose SMA over EMA when you need equal-weight averaging without exponential decay.

## Known failure modes

- start_ms or end_ms not an exact multiple of the interval — request rejected
- symbol not supported or misspelled — no data returned
- start_ms >= end_ms — invalid range error
- interval enum value not in allowed list — validation error
- Payment not attached or insufficient — 402 Payment Required
- No candles available in the requested range — empty result or error

## How this service works

Deterministic, verifiable crypto market data and honest backtest audits. Use GET /v1/data/ohlcv for exact OHLCV over a half-open range with a SHA-256 Merkle manifest - only closed candles are returned, exchange decimal strings are preserved byte for byte, so the same query always yields the same root. Use GET /v1/data/proof to verify one candle against a root you already hold. Use POST /v1/validate/trades to find out whether a list of trade returns can be distinguished from luck, and POST /v1/validate/filter to test a trade filter against a permutation null. GET /, /v1/schema and /v1/data/sources are free.

## Output

A time-series array of SMA values aligned to closed candles within the requested half-open range [start_ms, end_ms), at the requested interval. Each data point includes the timestamp and the SMA value at full precision. The first returned value is already converged because warm-up bars are fetched prior to start_ms and silently discarded, ensuring consistency regardless of range width.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol",
      "interval",
      "start_ms",
      "end_ms"
     ],
     "properties": {
      "end_ms": {
       "type": "integer",
       "description": "EXCLUSIVE, epoch ms, exact multiple of the interval"
      },
      "period": {
       "type": "integer",
       "description": "optional; defaults to 20"
      },
      "symbol": {
       "type": "string",
       "description": "e.g. BTCUSDT"
      },
      "interval": {
       "enum": [
        "1m",
        "3m",
        "5m",
        "15m",
        "30m",
        "1h",
        "2h",
        "4h",
        "6h",
        "8h",
        "12h",
        "1d",
        "3d",
        "1w"
       ],
       "type": "string"
      },
      "start_ms": {
       "type": "integer",
       "description": "inclusive, epoch ms, exact multiple of the interval"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cloudmaxi0x-sma-indicator-8db96c3b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cloudmaxi0x.com](https://www.zero.xyz/host/cloudmaxi0x.com/llms.txt)
