{"uid":"cap_Zquk48DUIe2-Q5lImKl8A","slug":"api-quantoracle-dev-01837e93","name":"QuantOracle Z-Score Calculator","description":"QuantOracle: stats/zscore","url":"https://api.quantoracle.dev/v1/stats/zscore","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"series":{"type":"array","items":{"type":"number"},"title":"Series","maxItems":5000,"minItems":3,"description":"Numeric data series (max 5000)"},"window":{"anyOf":[{"type":"integer","maximum":5000,"minimum":2},{"type":"null"}],"title":"Window","description":"Rolling window size (null for static z-scores)"},"threshold":{"type":"number","title":"Threshold","default":2,"description":"Z-score threshold for extreme value detection"}}},"responseSchema":null,"example":{"request":{"input":{"body":{"series":[100.5,102.3,98.7,115.2,101.1,99.8,103.4],"window":5,"threshold":2},"type":"http","method":"POST","bodyType":"json"}},"response":{"ms":10.06,"mean":103,"_meta":{"url":"https://quantoracle.dev","docs":"https://api.quantoracle.dev/docs","powered_by":"QuantOracle"},"std_dev":5.598809,"z_scores":[-0.4465,-0.125,-0.768,2.179,-0.3394,-0.5716,0.0714],"rolling_z":[-0.3707,-0.5385,-0.0358],"extreme_count":1,"current_zscore":0.0714,"extreme_indices":[3]}},"exampleRequest":{"series":[100.5,102.3,98.7,115.2,101.1,99.8,103.4],"window":5,"threshold":2},"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5Xc09LIbT7A6VucirPwhd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes z-scores, rolling z-scores, and detects statistical outliers/extremes in a numeric time series with a configurable window and threshold","exampleAgentPrompt":"Run a z-score analysis on this price series [100.5, 102.3, 98.7, 115.2, 101.1, 99.8, 103.4] using a rolling window of 5 and flag anything beyond 2 standard deviations as extreme — I want to know which data points are statistical outliers.","exampleUseCases":null,"resultDescription":"Returns the mean, standard deviation, per-point z-scores for the entire series, rolling z-scores computed over the specified window, the current (most recent) z-score, a count of extreme observations, and the indices of those extreme values — all delivered in ~18ms.","failureModes":["Series too short for the specified window — returns error if series length is less than window size","Invalid threshold value — non-positive threshold may return validation error","Empty series input — returns error for missing or empty series array","Non-numeric values in series — parsing error for strings or nulls in the data array"],"whenToPreferThis":"Use this endpoint when you need fast, statistical z-score analysis on a numeric series — especially for financial price data, detecting unusual moves, or computing rolling normalization. Prefer this over generic stats libraries when you need a hosted, pay-per-call API with both full-series and rolling z-scores plus built-in extreme-value flagging in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:25.378Z","isFirstParty":false}