{"uid":"cap_vH7q8whhoTsqCb2szOVOS","slug":"cloudmaxi0x-sma-indicator-8db96c3b","name":"CloudMaxi0x SMA Indicator","description":"Deterministic, verifiable crypto market data and honest backtest audits. Use GET /v1/data/ohlcv for exact OHLCV over a half-open range with a SHA-256 Merkle manifest - only closed candles are returned, exchange decimal strings are preserved byte for byte, so the same query always yields the same root. Use GET /v1/data/proof to verify one candle against a root you already hold. Use POST /v1/validate/trades to find out whether a list of trade returns can be distinguished from luck, and POST /v1/validate/filter to test a trade filter against a permutation null. GET /, /v1/schema and /v1/data/sources are free.","url":"https://cloudmaxi0x.com/v1/indicators/sma","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["symbol","interval","start_ms","end_ms"],"properties":{"end_ms":{"type":"integer","description":"EXCLUSIVE, epoch ms, exact multiple of the interval"},"period":{"type":"integer","description":"optional; defaults to 20"},"symbol":{"type":"string","description":"e.g. BTCUSDT"},"interval":{"enum":["1m","3m","5m","15m","30m","1h","2h","4h","6h","8h","12h","1d","3d","1w"],"type":"string"},"start_ms":{"type":"integer","description":"inclusive, epoch ms, exact multiple of the interval"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j2QxpHdnEZbtwMyUsfUxj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a converged Simple Moving Average of the close price for a cryptocurrency symbol over a specified time range and interval, with warm-up period pre-fetched and discarded.","exampleAgentPrompt":"Can you fetch the 20-period simple moving average for BTCUSDT on 1-hour candles from January 1 2025 00:00 UTC to January 31 2025 00:00 UTC? I need converged values with no warm-up artifacts at the start.","exampleUseCases":[{"title":"Crypto trend detection for a trading bot","prompt":"Get me the 50-period daily SMA for ETHUSDT from December 1 2024 to March 1 2025 — I need every value to be fully converged so my bot can check whether price is above or below the moving average at each candle."},{"title":"Backtesting SMA crossover strategy","prompt":"I'm backtesting a 20-and-50 SMA crossover on SOLUSDT with 4-hour bars. Fetch the 20-period SMA from July 1 2024 00:00 to September 1 2024 00:00 — the first value must already be converged, not in warm-up."},{"title":"Dashboard display of current SMA trend","prompt":"Pull the 20-period 1-hour SMA for BTCUSDT for today — from midnight UTC to now — so I can display the current moving average trend line on my trading dashboard."}],"resultDescription":"A time-series array of SMA values aligned to closed candles within the requested half-open range [start_ms, end_ms), at the requested interval. Each data point includes the timestamp and the SMA value at full precision. The first returned value is already converged because warm-up bars are fetched prior to start_ms and silently discarded, ensuring consistency regardless of range width.","failureModes":["start_ms or end_ms not an exact multiple of the interval — request rejected","symbol not supported or misspelled — no data returned","start_ms >= end_ms — invalid range error","interval enum value not in allowed list — validation error","Payment not attached or insufficient — 402 Payment Required","No candles available in the requested range — empty result or error"],"whenToPreferThis":"Use this endpoint when you need a Simple Moving Average that is guaranteed to be converged at the first returned bar — critical for backtesting, strategy evaluation, or any comparison across different date ranges where consistency matters. Prefer this over computing SMA locally when you want server-side warm-up management and reproducible precision. Choose SMA over EMA when you need equal-weight averaging without exponential decay.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:41:36.941Z","isFirstParty":false}