MACD technical indicator for stocks via Alpha Vantage, pay-per-call over Tempo L2.
What it does
This endpoint computes the Moving Average Convergence/Divergence (MACD) indicator for any stock ticker symbol via Alpha Vantage data, exposed through the Locus MPP (Micropayment Protocol). Each call is charged individually at $0.008 (8000 base units of pathUSD with 6 decimals) settled on Tempo L2.
The MACD endpoint accepts a stock symbol, time interval (from 1-minute intraday to monthly), and series type (close, open, high, low). Optional parameters let you customize the fast period (default 12), slow period (default 26), and signal period (default 9). You can also specify a particular month for intraday intervals and choose JSON or CSV output. The endpoint is part of a broader Alpha Vantage proxy service on Locus that includes 25+ endpoints covering time series (intraday, daily, weekly, monthly), fundamental data (income statements, balance sheets, cash flow, earnings), forex, crypto, commodities, economic indicators, news sentiment, and other technical indicators (SMA, EMA, RSI, Bollinger Bands).
The endpoint is a POST-only route. The probe returned 404 on HEAD and GET, which is expected since the OpenAPI spec defines only POST. Payment is handled via the MPP challenge-response flow with intent "charge" and method "tempo". Full API reference is available at Alpha Vantage's documentation site, and Locus-specific docs are at beta.paywithlocus.com/mpp/alphavantage.md.
Capabilities
Use cases
- —Computing MACD values for algorithmic trading strategies
- —Adding MACD signals to a stock screening dashboard
- —Backtesting momentum-based trading rules on historical data
- —Generating technical analysis reports for equities
- —Monitoring MACD crossovers for trade entry/exit signals
Fit
Best for
- —AI agents that need on-demand technical indicators without API key management
- —Pay-per-call access to Alpha Vantage without a subscription
- —Automated trading bots settling micropayments on Tempo L2
Not for
- —High-frequency trading requiring sub-second latency (micropayment overhead per call)
- —Bulk historical data downloads where a direct Alpha Vantage subscription would be cheaper
- —Non-equity assets not covered by Alpha Vantage's MACD function
Quick start
curl -X POST https://alphavantage.mpp.paywithlocus.com/alphavantage/macd \
-H "Content-Type: application/json" \
-d '{"symbol": "AAPL", "interval": "daily", "series_type": "close"}'Example
Request
{
"symbol": "AAPL",
"interval": "daily",
"fastperiod": 12,
"slowperiod": 26,
"series_type": "close",
"signalperiod": 9
}Endpoint
Quality
Full OpenAPI schema with detailed request parameters and payment info is available. However, the probe did not capture a 402 challenge (only HEAD/GET were tried on a POST-only endpoint), no response schema or example response is documented, and crawled pages returned only 404 JSON errors. Price is inferrable from x-payment-info but the currency token address requires assumption of 6 decimals (pathUSD).
Warnings
- —Probe returned 404 because only HEAD/GET were attempted; the endpoint is POST-only per the OpenAPI spec, so liveness is not confirmed by the probe.
- —No response schema is documented in the OpenAPI spec — the 200 response only says 'Successful response'.
- —Currency token address 0x20c000000000000000000000b9537d11c60e8b50 is assumed to be pathUSD with 6 decimals; if this is incorrect the stated price of $0.008 would be wrong.
- —No example response data is available from the probe or crawl.
Citations
- —The MACD endpoint accepts symbol, interval, series_type as required parameters with optional fastperiod, slowperiod, signalperiod, month, and datatype.https://alphavantage.mpp.paywithlocus.com
- —Payment is 8000 base units via Tempo L2 with intent 'charge'.https://alphavantage.mpp.paywithlocus.com
- —Alpha Vantage API reference is available at alphavantage.co/documentation/https://www.alphavantage.co/documentation/,
- —Locus-specific docs are referenced at beta.paywithlocus.com/mpp/alphavantage.mdhttps://beta.paywithlocus.com/mpp/alphavantage.md