Simple Moving Average (SMA) technical indicator via Alpha Vantage, pay-per-call over MPP.
What it does
This endpoint computes the Simple Moving Average (SMA) for a given stock ticker symbol using Alpha Vantage data, served through the Locus MPP (Micropayment Protocol) gateway. You supply a ticker symbol, time interval (from 1-minute intraday to monthly), a lookback period (e.g., 20, 50, or 200 data points), and the price series type (open, high, low, or close). The endpoint returns the SMA values for the requested configuration. An optional month parameter lets you target a specific YYYY-MM window for intraday intervals, and output can be JSON or CSV.
The endpoint is part of a broader Alpha Vantage suite on the Locus MPP gateway that includes time-series data (intraday, daily, weekly, monthly), fundamental data (income statements, balance sheets, cash flow, earnings), forex and crypto exchange rates, commodity prices, economic indicators, news sentiment, and additional technical indicators (EMA, MACD, RSI, Bollinger Bands). All endpoints in the suite share the same per-call pricing.
Payment is handled via the Tempo method at $0.008 per call (8000 base units of pathUSD with 6 decimals). The endpoint accepts POST requests with a JSON body. The probe returned 404 on HEAD/GET, which is expected since the OpenAPI spec defines only POST for this path.
Capabilities
Use cases
- —Computing 20/50/200-day moving averages for trend analysis in trading bots
- —Overlaying SMA on price charts for automated signal generation
- —Backtesting moving-average crossover strategies
- —Feeding SMA data into multi-indicator AI trading agents
- —Screening stocks by comparing current price to SMA levels
Fit
Best for
- —AI agents needing on-demand SMA calculations without managing API keys
- —Pay-per-call access to Alpha Vantage technical indicators
- —Automated trading systems that need configurable SMA parameters
- —Developers who want micropayment-gated financial data without subscriptions
Not for
- —High-frequency trading requiring sub-second latency (per-call payment adds overhead)
- —Bulk historical data downloads where a direct Alpha Vantage subscription would be cheaper
- —Real-time streaming price feeds
Quick start
curl -X POST https://alphavantage.mpp.paywithlocus.com/alphavantage/sma \
-H "Content-Type: application/json" \
-d '{"symbol": "IBM", "interval": "daily", "time_period": 50, "series_type": "close"}'Example
Request
{
"symbol": "IBM",
"datatype": "json",
"interval": "daily",
"series_type": "close",
"time_period": 50
}Endpoint
Quality
Full OpenAPI schema with clear request parameters and payment info is available. However, the probe did not capture a live 402 challenge (only POST is supported, probe tried HEAD/GET), no example response is available, and crawled pages all returned 404 with no additional documentation. Price is inferrable from the OpenAPI x-payment-info but the currency token address requires assumption of 6-decimal pathUSD.
Warnings
- —Probe returned 404 on HEAD and GET; endpoint only accepts POST per the OpenAPI spec — likely live but not confirmed via 402 challenge
- —No example response schema or sample response is provided in the OpenAPI spec
- —Currency token address 0x20c000000000000000000000b9537d11c60e8b50 is assumed to be pathUSD with 6 decimals based on the Tempo method convention; this is not explicitly confirmed in the probe
- —All crawled documentation pages returned 404; external docs at https://beta.paywithlocus.com/mpp/alphavantage.md were not fetched
Citations
- —The SMA endpoint accepts POST with required fields: symbol, interval, time_period, series_typehttps://alphavantage.mpp.paywithlocus.com
- —Payment amount is 8000 base units via Tempo method with currency 0x20c000000000000000000000b9537d11c60e8b50https://alphavantage.mpp.paywithlocus.com
- —Alpha Vantage API reference is available at https://www.alphavantage.co/documentation/https://www.alphavantage.co/documentation/,
- —The broader suite includes 25+ endpoints covering time series, fundamentals, forex, crypto, commodities, economic indicators, news sentiment, and technical indicatorshttps://alphavantage.mpp.paywithlocus.com