{"uid":"cap_QGn9WG-LWxYLd8D72m5jp","slug":"one-engine-moving-average-calculator-a8ea5d94","name":"ONE Engine Moving Average Calculator","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/t6?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SKe_DELfLhcP9tSt-xUV8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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":"Calculate a moving average over these 20 sensor readings using a window size of 5, clamping results between 0 and 100, and rounding to 2 decimal places: [12.3, 15.1, 14.8, 13.2, 16.0, 17.5, 15.9, 14.4, 13.8, 12.9, 16.1, 17.0, 18.2, 15.5, 14.3, 13.7, 12.1, 11.8, 13.4, 15.6].","exampleUseCases":[{"title":"Smooth noisy stock price data","prompt":"I have 50 daily closing prices for a stock and want to smooth them out — calculate a 7-day moving average over these values and round each result to 4 decimal places: [142.3, 143.1, 141.8, ...]"},{"title":"Sensor telemetry noise reduction","prompt":"These are temperature readings from an IoT sensor — run a moving average with a window of 10 over all 200 readings, clamp the output between -40 and 125, and give me the smoothed series."},{"title":"Normalize and smooth signal for chart display","prompt":"Take this array of 500 raw audio amplitude values, compute a moving average with a window size of 20, apply a scale factor of 0.5 and an offset of 128 to normalize them for display, and round to 1 decimal place."}],"resultDescription":"Returns a JSON object containing the smoothed moving average series derived from the input array, with values optionally scaled, offset, clamped to min/max bounds, and rounded to the specified number of decimal digits.","failureModes":["Input array exceeds 1000 elements — request rejected","Non-finite or NaN values in the input array cause computation failure","Window size (size) larger than input array length may return empty or partial results","Invalid type for parameters (e.g. non-integer for digits) returns a 400 error","Payment not included or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call moving average computation without hosting your own math service — especially useful for AI agents that sporadically need signal smoothing, financial rolling averages, or sensor data preprocessing at low cost ($0.004/call) via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:05.996Z","isFirstParty":false,"canonicalSlug":"one-engine-moving-average-calculator-b906ea13"}