{"uid":"cap_VV3GCfiWZu17WkY7a6J8n","slug":"one-engine-moving-average-calculator-t1-69b9c511","name":"ONE Engine Moving Average Calculator (T1)","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PRCbr4gdj9SlbRouf4Wkf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 provided array of numeric values with configurable window size, scale, and normalization options.","exampleAgentPrompt":"Calculate a moving average over these values [10, 12, 14, 13, 15, 17, 16, 18, 20] using a window size of 3, rounded to 2 decimal places.","exampleUseCases":[{"title":"Smooth stock price series","prompt":"I have a list of daily closing prices for the past 30 days — can you run a moving average over them with a window of 5 days, rounded to 4 decimal places, so I can see the trend more clearly?"},{"title":"Normalize sensor readings","prompt":"I'm getting noisy readings from a temperature sensor: [22.1, 23.4, 21.9, 24.0, 22.8, 23.5, 24.1]. Can you apply a 3-point moving average, scale the output to a 0–100 range with min 21 and max 25, and give me 2 decimal digits?"},{"title":"Smooth agent-generated metric stream","prompt":"Here are 20 latency measurements from my API monitoring run: [45, 52, 48, 61, 55, 49, 53, 60, 58, 47, 50, 55, 62, 59, 48, 51, 57, 63, 60, 52]. Apply a 4-point moving average and return the smoothed values rounded to 1 decimal place."}],"resultDescription":"Returns a JSON object containing the smoothed moving average series computed from the input array, reflecting the configured window size, optional normalization bounds (min/max), scale factor, offset, and decimal precision.","failureModes":["Missing required 'values' field returns a validation error","Array exceeding 1000 elements may be rejected","Non-finite numbers (NaN, Infinity) in the array cause computation errors","Invalid window size (e.g. larger than array, non-integer) returns an error","Insufficient USDC balance or failed x402 payment results in 402 Payment Required","Malformed JSON body returns 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call moving average computation without provisioning any infrastructure. Ideal for AI agents that occasionally need to smooth numeric series (sensor data, prices, metrics) without bundling a math library. The $0.0005 per call price makes it cost-effective for low-to-medium frequency use. Prefer this over running local computation when the agent environment lacks numeric libraries or when you want a stateless, auditable computation step in an automated pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:08.524Z","isFirstParty":false,"canonicalSlug":"one-engine-moving-average-calculator-t1-69b9c511"}