{"uid":"cap_pH4FQaBZ749adjuL-gWDt","slug":"one-engine-moving-average-t9-46dcd066","name":"ONE Engine Moving Average (T9)","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/numeric/moving-average/t9?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.018","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.018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MHn6cfc3lqslMXHVHWyea","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a moving average over an array of numeric values with configurable window size, scaling, and clamping options.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Smoothing stock price series","prompt":"I have a list of daily closing prices for the past 30 days — can you run a 7-period moving average over them to smooth out the noise? Here are the values: [142.5, 144.1, 143.8, 146.2, 145.0, 147.3, 148.1, 146.5, 149.0, 150.2, 149.8, 151.0, 152.3, 150.7, 153.1, 154.0, 152.8, 155.1, 156.0, 154.5, 157.2, 158.0, 156.8, 159.1, 160.0, 158.5, 161.2, 162.0, 160.7, 163.1]. Keep 2 decimal places."},{"title":"Smoothing IoT sensor temperature readings","prompt":"I've got a stream of temperature sensor readings in Celsius that are quite noisy: [22.1, 23.5, 21.8, 24.0, 22.7, 23.9, 25.1, 22.3, 23.8, 24.5]. Can you apply a 3-period moving average, clamp the output between 20 and 26 degrees, and round to 1 decimal place?"},{"title":"Normalizing fitness tracker heart rate data","prompt":"Here are heart rate samples from my fitness tracker over the last hour: [72, 75, 80, 78, 85, 90, 88, 82, 79, 76, 74, 73]. Apply a moving average with a window of 4, scale everything by a factor of 0.95 to account for calibration drift, and give me the result rounded to whole numbers."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:33.464Z","isFirstParty":false,"canonicalSlug":"one-engine-moving-average-t9-46dcd066"}