{"uid":"cap_vnvvAXp7nNUROyMwQwuMh","slug":"numora-moving-average-api-d0649269","name":"Numora Moving Average API","description":"100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.","url":"https://numomo.vercel.app/api/statistics/moving-average","method":"POST","headers":{},"bodySchema":{"type":"object","required":["data","window"],"properties":{"data":{"type":"array"},"type":{"type":"string"},"window":{"type":"integer"}}},"responseSchema":{"type":"object","required":["success","result","computation"],"properties":{"result":{"type":"object","description":"Computation result varies by endpoint"},"success":{"type":"boolean","description":"Always true on success"},"computation":{"type":"string","description":"Human-readable description of what was computed"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zYq5lm1-15IBjF3NFEn_G","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes simple or exponential moving averages over a numeric data series given a sliding window size","exampleAgentPrompt":"Calculate a simple moving average for this price series [120, 125, 130, 128, 135, 140, 138] using a window size of 3.","exampleUseCases":[{"title":"Stock price trend smoothing","prompt":"I have a list of daily closing prices [50, 52, 49, 53, 55, 58, 57, 60, 62, 61] — can you calculate a simple moving average with a window of 5 to smooth out the noise?"},{"title":"Sales data rolling average","prompt":"Here are weekly sales figures for the last 12 weeks: [200, 220, 180, 240, 210, 230, 250, 260, 245, 270, 280, 265]. Give me a rolling average with a window of 4 to spot the trend."},{"title":"Exponential moving average for signals","prompt":"Compute an exponential moving average over this sensor reading sequence [3.1, 3.4, 3.2, 3.8, 4.0, 3.9, 4.2, 4.5] with a window of 3."}],"resultDescription":"Returns a JSON object with success=true, a result object containing the computed moving average values (array aligned to the input series), and a human-readable computation string describing what was calculated.","failureModes":["Missing required 'data' array returns validation error","Missing required 'window' integer returns validation error","Window size larger than data array length may return empty or partial result","Non-numeric values in data array may cause computation failure","Invalid 'type' string for moving average type may fall back to default or error"],"whenToPreferThis":"Use this endpoint when you need pure mathematical moving average computation with zero external dependencies and no data persistence. Ideal for financial price smoothing, time-series analysis, and signal processing tasks where you supply your own data array and need a fast, deterministic result. Prefer over general-purpose analytics platforms when cost, simplicity, and sub-second computation matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:42:09.674Z","isFirstParty":false}