# SignalDesk AI Moving Average

> SignalDesk AI Moving Average is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Computes a simple moving average over an array of numeric observations using a specified window length

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/stats/moving-average?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-moving-average-079393ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qBAtlFBlp1Sxt-QrmiHFp

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 signaldesk-ai-moving-average-079393ad -d '<json body>'
```

Example prompt: Calculate a 5-period moving average over these sensor readings: [10, 20, 15, 30, 25, 40, 35, 50, 45, 60].

## When to prefer this

Choose this endpoint when you need a quick, serverless, pay-per-call moving average computation without setting up local statistical libraries. Ideal for lightweight agent workflows that occasionally need data smoothing on arrays up to 1000 elements. Prefer alternatives (e.g. local numpy/pandas or a dedicated analytics platform) for very large datasets, more advanced statistical transforms (EMA, VWMA), or batch operations requiring many sequential calls.

## Known failure modes

- Empty or missing 'values' array returns a validation error
- Window length larger than the number of input values may return an empty array or error
- More than 1000 input values exceeds the maxItems limit and will be rejected
- Non-finite numbers (NaN, Infinity) in the input array may cause computation errors
- Payment failure via x402 protocol will block the request before computation

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object with a 'values' array of floating-point numbers representing the computed moving averages. The output array length equals the number of input values minus (window - 1), so a window of 3 on 10 values yields 8 averaged results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {
    "type": "number",
    "maximum": 1000000000000000,
    "minimum": -1000000000000000
   },
   "maxItems": 1000,
   "minItems": 1,
   "description": "Up to 1000 finite observations."
  },
  "window": {
   "type": "integer",
   "maximum": 1000,
   "minimum": 1,
   "description": "Window length."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "values": [
   1.5,
   2.5,
   3.5
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-moving-average-079393ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
