{"uid":"cap_qBAtlFBlp1Sxt-QrmiHFp","slug":"signaldesk-ai-moving-average-079393ad","name":"SignalDesk AI Moving Average","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/stats/moving-average?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"type":"json","example":{"values":[1.5,2.5,3.5]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XJrxRfLmrCI9LNyQJSq7z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a simple moving average over an array of numeric observations using a specified window length","exampleAgentPrompt":"Calculate a 5-period moving average over these sensor readings: [10, 20, 15, 30, 25, 40, 35, 50, 45, 60].","exampleUseCases":[{"title":"Smooth stock price time series","prompt":"I have 30 days of closing prices for AAPL — [145.2, 147.8, 146.1, 149.3, 151.0, 150.5, 153.2, 155.0, 154.3, 156.7, 158.1, 157.4, 160.2, 162.5, 161.8, 163.4, 165.0, 164.2, 166.8, 168.1, 167.5, 169.3, 171.0, 170.4, 172.6, 174.1, 173.5, 175.2, 177.0, 176.4] — can you compute a 7-day moving average so I can see the trend more clearly?"},{"title":"Denoise IoT sensor readings","prompt":"These temperature readings from my factory floor sensor are really noisy: [72.1, 71.8, 74.3, 69.5, 73.2, 72.8, 70.1, 71.9, 74.5, 72.3, 71.0, 73.8, 72.5, 70.9, 74.1]. Apply a 3-point moving average to smooth them out."},{"title":"Analyze website traffic trends","prompt":"I have daily page view counts for the last two weeks: [1200, 1350, 1100, 1500, 1800, 2100, 1950, 1300, 1450, 1250, 1600, 1900, 2200, 2050]. Can you run a 4-day moving average so I can spot the weekly traffic pattern?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:42:02.228Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-moving-average-079393ad"}