# ONE Engine Moving Average (T5)

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

Computes a moving average over a sequence of up to 1000 numeric values with configurable window size, scaling, and clamping options.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/moving-average/t5?utm_source=zero.xyz
- Price: $0.0025/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-t5-8b5cb26a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kSZaz_pOjkLWHZADADs1e

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-t5-8b5cb26a -d '<json body>'
```

Example prompt: Can you compute a 5-period moving average over these values: [10, 20, 15, 30, 25, 40, 35, 50, 45, 60], rounding to 2 decimal places?

## When to prefer this

Choose this endpoint when you need a fast, cheap, pay-per-call moving average computation without setting up your own math library or statistical service. Ideal for agent pipelines that occasionally need to smooth time series, financial, or sensor data on demand without persistent infrastructure. At $0.0025 USDC per call it's cost-effective for low-to-moderate frequency use by autonomous agents on Base.

## Known failure modes

- Input array exceeds 1000 elements — request rejected
- Non-finite (NaN, Infinity) values in the input array cause an error
- Window size (size) larger than the input array length may return an empty or partial result
- Invalid types for numeric parameters (e.g. string where number expected) cause a schema validation error
- Payment failure via x402 results in a 402 response before computation occurs

## 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 computed moving average series — a smoothed numeric array derived from the input values using the specified window size, with optional scaling by factor, translation by offset, clamping between min/max, and rounding to the specified number of decimal digits.

## 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-t5-8b5cb26a/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)
