# ONE Engine Moving Average (T9)

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

Computes a moving average over an array of numeric values with configurable window size, scaling, and clamping options.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/numeric/moving-average/t9?utm_source=zero.xyz
- Price: $0.018/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-t9-46dcd066
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pH4FQaBZ749adjuL-gWDt

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-t9-46dcd066 -d '<json body>'
```

Example prompt: Can you compute a 5-period moving average over these values [12.3, 15.1, 13.7, 14.5, 16.2, 15.8, 17.0, 13.4, 14.9, 16.5], clamped between 10 and 20, rounded to 2 decimal places?

## When to prefer this

Choose this endpoint when you need a quick, cheap, pay-per-call moving average computation without standing up your own math infrastructure — especially useful for autonomous agents on Base that handle financial, IoT, or signal-processing tasks and need statistical smoothing with built-in normalization options (clamping, scaling, offset). Prefer it over general-purpose code execution when you want a single deterministic numeric operation billed at micro-transaction scale via x402.

## Known failure modes

- Input array exceeds 1000 elements — request rejected
- Non-finite values (NaN, Infinity) in the values array cause errors
- Missing required 'values' field returns a 400-level error
- Payment not provided or insufficient USDC balance via x402 returns 402
- Window size (size) larger than input array length may return empty or partial results

## 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 array of numeric values derived from the input, with optional clamping to min/max bounds, scaling by a factor, offset adjustment, and rounding to a 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-t9-46dcd066/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)
