Exponential Moving Average (EMA) technical indicator via Alpha Vantage, pay-per-call over MPP.
What it does
This endpoint computes the Exponential Moving Average (EMA) for a given stock ticker symbol through Alpha Vantage's financial data API, proxied via the Locus MPP (Micropayment Protocol). EMA is a trend-following technical indicator that gives more weight to recent prices, making it more responsive to new information than a Simple Moving Average. You can request EMA values across multiple time intervals (1min, 5min, 15min, 30min, 60min, daily, weekly, monthly), specify the lookback period (time_period), and choose which price series to compute on (open, high, low, close). An optional month parameter lets you drill into a specific historical month for intraday intervals.
The endpoint is part of a broader Alpha Vantage suite hosted on the Locus MPP gateway that includes over 25 endpoints covering intraday/daily/weekly/monthly time series, fundamental data (income statement, balance sheet, cash flow, earnings), forex and crypto exchange rates, commodity prices, economic indicators, news sentiment, and other technical indicators (SMA, MACD, RSI, Bollinger Bands). Each call costs 8,000 base units of pathUSD on Tempo L2, which equals $0.008 (less than one cent) per request. Payment is handled via the MPP charge intent — no API key management required.
The endpoint accepts POST requests with a JSON body. Required fields are symbol, interval, time_period, and series_type. Output defaults to JSON but can be switched to CSV via the datatype parameter. Note that the probe returned 404 on HEAD/GET methods; the endpoint is designed for POST only, as specified in the OpenAPI schema.
Capabilities
Use cases
- —Computing EMA crossovers (e.g., 12/26 EMA) for automated trading signals
- —Adding EMA overlays to stock charting dashboards
- —Backtesting trading strategies that rely on EMA-based trend detection
- —Monitoring intraday EMA values for real-time algorithmic trading
- —Comparing EMA across multiple timeframes for multi-timeframe analysis
Fit
Best for
- —AI agents that need on-demand technical indicator data without managing API keys
- —Algorithmic trading bots requiring per-call EMA computation
- —Financial analysis workflows that need EMA across flexible intervals and lookback periods
Not for
- —Streaming real-time tick-level data (this is request/response, not a WebSocket feed)
- —Non-financial use cases unrelated to price time series
- —Bulk historical data downloads where per-call pricing would be cost-prohibitive
Quick start
curl -X POST https://alphavantage.mpp.paywithlocus.com/alphavantage/ema \
-H "Content-Type: application/json" \
-d '{"symbol": "IBM", "interval": "daily", "time_period": 20, "series_type": "close"}'Example
Request
{
"symbol": "IBM",
"datatype": "json",
"interval": "daily",
"series_type": "close",
"time_period": 20
}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 returned only 404 error JSON. Price is clearly derivable from the schema.
Warnings
- —Probe returned 404 on HEAD and GET — endpoint only accepts POST per the OpenAPI spec; liveness via POST was not directly confirmed by the probe.
- —No example response body is available in the schema or crawl data; response structure must be inferred from Alpha Vantage's own documentation.
- —Currency token address 0x20c000000000000000000000b9537d11c60e8b50 is assumed to be pathUSD with 6 decimals based on the Tempo settlement method; if decimals differ, the computed price of $0.008 would be incorrect.
Citations
- —EMA endpoint accepts POST with required fields symbol, interval, time_period, series_type and costs 8000 base units via Tempohttps://alphavantage.mpp.paywithlocus.com
- —Alpha Vantage provides financial market data including stock prices, forex, crypto, commodities, economic indicators, technical analysis, and news sentimenthttps://www.alphavantage.co/documentation/"
- —Additional documentation available at the Locus MPP docs pagehttps://beta.paywithlocus.com/mpp/alphavantage.md