{"uid":"cap_U6LKhBJyC4xdAsRmFNEGS","slug":"one-engine-moving-average-t2-c4d51e6b","name":"ONE Engine Moving Average (T2)","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/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_URCfT3jzwEpI1EadFi06P","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","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 optional scaling, clamping, rounding, and offset controls.","exampleAgentPrompt":"Can you compute a 5-period moving average over these values: [10, 20, 30, 25, 40, 35, 50, 45, 60, 55], rounding results to 2 decimal places?","exampleUseCases":[{"title":"Smooth stock price series","prompt":"I have a list of daily closing prices for the past 30 days: [150, 152, 148, 155, 160, 158, 162, 165, 163, 170, 168, 175, 172, 178, 180, 179, 183, 185, 182, 188, 190, 187, 192, 195, 193, 198, 200, 197, 202, 205]. Can you compute a 7-day moving average over them, rounded to 2 decimal places?"},{"title":"Smooth IoT temperature sensor readings","prompt":"I'm getting noisy temperature readings from my sensor: [22.1, 21.8, 23.5, 22.9, 24.1, 23.7, 25.0, 24.5, 23.8, 24.2, 25.1, 24.8]. Can you apply a 3-period moving average to smooth them out, clamping results between 20 and 30 degrees?"},{"title":"Normalize and average sales metrics","prompt":"Here are my weekly sales figures scaled weirdly: [1050, 1200, 980, 1300, 1150, 1400, 1250, 1100, 1350, 1500]. Can you compute a 4-week moving average, apply a factor of 0.001 to convert to thousands, and round to 1 decimal place?"}],"resultDescription":"Returns a JSON object containing the computed moving average series derived from the input numeric array, reflecting the configured window size, optional min/max clamping, decimal rounding precision, multiplicative factor, and additive offset.","failureModes":["Array exceeds 1000 values — request rejected","Non-finite numbers (NaN, Infinity) in the values array cause errors","Window size (size) larger than the input array length may produce empty or partial results","Payment failure via x402 protocol blocks request","Invalid types for numeric parameters cause schema validation errors"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call moving average computation without spinning up your own math infrastructure. It is particularly useful for AI agents that need on-demand numeric smoothing of time series, sensor data, or financial series, especially when combined with clamping and rounding options in a single call. Prefer it over general-purpose compute services when cost-efficiency at micro-scale ($0.0007/call) and simplicity matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:24.686Z","isFirstParty":false,"canonicalSlug":"one-engine-moving-average-t2-c4d51e6b"}