{"uid":"cap_kSZaz_pOjkLWHZADADs1e","slug":"one-engine-moving-average-t5-8b5cb26a","name":"ONE Engine Moving Average (T5)","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/t5?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.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_i2S7wOXFzUwxqaQx-maro","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","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 a sequence of up to 1000 numeric values with configurable window size, scaling, and clamping options.","exampleAgentPrompt":"Can you compute a 5-period moving average over these values: [10, 20, 15, 30, 25, 40, 35, 50, 45, 60], rounding to 2 decimal places?","exampleUseCases":[{"title":"Smooth stock price history","prompt":"I have a list of daily closing prices for the past 30 days — can you run a 7-day moving average over them and round results to 2 decimal places? Values: [102.5, 104.1, 103.8, 105.2, 107.0, 106.3, 108.1, 109.4, 110.0, 111.2, 110.8, 112.5, 113.0, 112.1, 114.3, 115.0, 114.8, 116.2, 117.5, 118.0, 117.3, 119.1, 120.0, 119.5, 121.2, 122.0, 121.8, 123.4, 124.0, 125.2]"},{"title":"Denoise IoT sensor readings","prompt":"I'm getting noisy temperature readings from a sensor every minute. Can you smooth them with a moving average window of 10 and clamp the output between 0 and 100? Here are the last 50 readings: [22,23,21,24,20,19,25,23,22,24,26,27,25,23,22,21,20,24,25,26,28,27,26,25,24,23,22,21,20,25,26,27,28,29,27,26,25,24,23,22,21,20,19,24,25,26,27,28,29,30]"},{"title":"Rolling average for agent metrics","prompt":"I have 20 latency measurements from my agent runs in milliseconds and want to track a 3-point rolling average to see if performance is improving — can you calculate that? Values: [120,135,128,142,130,125,140,138,132,127,145,150,143,138,135,129,140,145,150,148]"}],"resultDescription":"Returns a JSON object containing the computed moving average series — a smoothed numeric array derived from the input values using the specified window size, with optional scaling by factor, translation by offset, clamping between min/max, and rounding to the specified number of decimal digits.","failureModes":["Input array exceeds 1000 elements — request rejected","Non-finite (NaN, Infinity) values in the input array cause an error","Window size (size) larger than the input array length may return an empty or partial result","Invalid types for numeric parameters (e.g. string where number expected) cause a schema validation error","Payment failure via x402 results in a 402 response before computation occurs"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, pay-per-call moving average computation without setting up your own math library or statistical service. Ideal for agent pipelines that occasionally need to smooth time series, financial, or sensor data on demand without persistent infrastructure. At $0.0025 USDC per call it's cost-effective for low-to-moderate frequency use by autonomous agents on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:11.522Z","isFirstParty":false,"canonicalSlug":"one-engine-moving-average-t5-8b5cb26a"}