# ONE Engine Moving Average Calculator (T1)

> ONE Engine Moving Average Calculator (T1) is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.0005/call, status unknown (last checked 2026-10-02).

Computes a moving average over a provided array of numeric values with configurable window size, scale, and normalization options.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/moving-average/t1?utm_source=zero.xyz
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-moving-average-calculator-t1-69b9c511
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VV3GCfiWZu17WkY7a6J8n

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 one-engine-moving-average-calculator-t1-69b9c511 -d '<json body>'
```

Example prompt: Calculate a moving average over these values [10, 12, 14, 13, 15, 17, 16, 18, 20] using a window size of 3, rounded to 2 decimal places.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call moving average computation without provisioning any infrastructure. Ideal for AI agents that occasionally need to smooth numeric series (sensor data, prices, metrics) without bundling a math library. The $0.0005 per call price makes it cost-effective for low-to-medium frequency use. Prefer this over running local computation when the agent environment lacks numeric libraries or when you want a stateless, auditable computation step in an automated pipeline.

## Known failure modes

- Missing required 'values' field returns a validation error
- Array exceeding 1000 elements may be rejected
- Non-finite numbers (NaN, Infinity) in the array cause computation errors
- Invalid window size (e.g. larger than array, non-integer) returns an error
- Insufficient USDC balance or failed x402 payment results in 402 Payment Required
- Malformed JSON body returns 400 Bad Request

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns a JSON object containing the smoothed moving average series computed from the input array, reflecting the configured window size, optional normalization bounds (min/max), scale factor, offset, and decimal precision.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "values"
 ],
 "properties": {
  "max": {
   "type": "number"
  },
  "min": {
   "type": "number"
  },
  "size": {
   "type": "integer"
  },
  "digits": {
   "type": "integer"
  },
  "factor": {
   "type": "number"
  },
  "offset": {
   "type": "number"
  },
  "values": {
   "type": "array",
   "description": "Finite numbers, maximum 1000"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-moving-average-calculator-t1-69b9c511/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
