# Numora Moving Average Computation

> Numora Moving Average Computation is a paid API for AI agents from numormor.netlify.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Computes moving averages (simple, exponential, or other types) over a numeric data array using a specified window size

## Facts

- Endpoint: POST https://numormor.netlify.app/api/statistics/moving-average
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/numora-moving-average-computation-ca2afff5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_obz-rS1mF226vifXPQ4Ij

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 numora-moving-average-computation-ca2afff5 -d '<json body>'
```

Example prompt: Calculate a 7-day simple moving average over this sales data: [120, 135, 110, 142, 155, 130, 148, 162, 171, 145, 138, 160, 175, 190] using a window of 7.

## When to prefer this

Use this endpoint when you need a pure math moving average computation with no external dependencies, micropayment pricing, and a simple JSON in/out interface. Prefer this over general-purpose analytics platforms when you just need the calculation itself without data storage or visualization. Ideal for AI agents embedding rolling average logic into workflows.

## Known failure modes

- Missing required 'data' array — returns error indicating required field
- Missing required 'window' integer — returns error indicating required field
- Window size larger than data array length — may return empty result or error
- Invalid type string for moving average type — may fall back to default or return error
- Non-numeric values in data array — computation may fail or produce NaN results
- Data array is empty — returns error or empty result

## How this service works

100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.

## Output

Returns a JSON object with success flag, a result object containing the computed moving average values for each valid window position, and a human-readable computation string describing what was calculated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "window"
 ],
 "properties": {
  "data": {
   "type": "array"
  },
  "type": {
   "enum": [
    "sma",
    "ema",
    "wma"
   ],
   "type": "string"
  },
  "window": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success",
  "result",
  "computation"
 ],
 "properties": {
  "result": {
   "type": "object",
   "description": "Computation result varies by endpoint"
  },
  "success": {
   "type": "boolean",
   "description": "Always true on success"
  },
  "computation": {
   "type": "string",
   "description": "Human-readable description of what was computed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/numora-moving-average-computation-ca2afff5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from numormor.netlify.app](https://www.zero.xyz/host/numormor.netlify.app/llms.txt)
