{"uid":"cap_ZTF2y7ge2Lz3KbSCAVIbV","slug":"alpha-vantage-sma-simple-moving-average-via-locus-x402-266dda11","name":"Alpha Vantage SMA (Simple Moving Average) via Locus x402","description":"Financial market data — stock prices, forex, crypto, commodities, economic indicators, technical analysis, and news sentiment.","url":"https://alphavantage.x402.paywithlocus.com/alphavantage/sma","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"month":{"type":"string"},"symbol":{"type":"string"},"datatype":{"type":"string"},"interval":{"type":"string"},"series_type":{"type":"string"},"time_period":{"type":"number"}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uRklvFfPcDKSi8jir933C","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the Simple Moving Average (SMA) for a given stock ticker over a specified time period and interval, returning technical analysis data via pay-per-call USDC micropayment.","exampleAgentPrompt":"Calculate the 50-period simple moving average for AAPL on daily closes — I want the SMA values in JSON format.","exampleUseCases":[{"title":"Trend detection for swing trading","prompt":"Get me the 200-day SMA for TSLA based on closing prices so I can see whether it's currently trading above or below its long-term trend."},{"title":"SMA crossover signal check","prompt":"Fetch the 20-period and 50-period daily SMA for MSFT on closing prices — I want to check if there's been a golden cross recently."},{"title":"Intraday moving average for day trading","prompt":"Give me the 15-minute interval 9-period SMA for SPY using close prices for this month, so I can see short-term momentum signals."}],"resultDescription":"Returns a JSON object containing timestamped SMA values for the requested ticker, interval, and time period, along with metadata about the indicator settings. Also includes payment settlement details (USDC amount settled, request ID, and status URL for tracking).","failureModes":["Invalid or unrecognized ticker symbol returns an error or empty data object","Unsupported interval value causes a validation error","time_period too large for available historical data may return truncated results","Missing required fields (symbol, interval, time_period) result in API error","Payment failure or insufficient USDC balance blocks the request","Rate limiting or Alpha Vantage upstream outage returns a service error"],"whenToPreferThis":"Choose this endpoint when you need SMA technical indicator data and want to pay per call without a subscription, especially when building AI agents or automated workflows that consume financial data on-demand. Prefer this over direct Alpha Vantage API access if you want micropayment-based billing via USDC x402 protocol. Use this specifically for SMA; sibling endpoints on the same host cover other indicators (EMA, RSI, etc.) and price data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:45:39.107Z","isFirstParty":false}