# Alpha Vantage EMA (Exponential Moving Average) via Locus x402

> Alpha Vantage EMA (Exponential Moving Average) via Locus x402 is a paid API for AI agents from alphavantage.x402.paywithlocus.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Calculates and returns the Exponential Moving Average (EMA) technical indicator for a given stock symbol, interval, and time period using Alpha Vantage data, billed per-call via x402 micropayments.

## Facts

- Endpoint: POST https://alphavantage.x402.paywithlocus.com/alphavantage/ema
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alpha-vantage-ema-exponential-moving-average-via-locus-x402-68b154de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z4KzYZ36eBjIdGqA_WxbF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability alpha-vantage-ema-exponential-moving-average-via-locus-x402-68b154de -d '<json body>'
```

Example prompt: Can you pull the 20-period EMA for AAPL on daily closes? I want the data in JSON format.

## When to prefer this

Choose this endpoint when you need EMA technical indicator data specifically — not raw price data — and want pay-per-call micropayment billing via x402 with no subscription required. It is ideal for algorithmic trading agents, momentum strategy bots, or any workflow that needs programmatic EMA values for any interval from 1-minute intraday to monthly, without managing an Alpha Vantage API key directly.

## Known failure modes

- Invalid or unsupported ticker symbol returns empty or error data
- Unsupported interval value causes a bad request response
- Missing required fields (symbol, interval, time_period) may result in an error
- Intraday month filtering only valid for intraday intervals (1min–60min); using with daily/weekly/monthly may fail
- Payment failure or insufficient USDC balance blocks the call
- Rate limiting from upstream Alpha Vantage may cause delayed or failed responses

## How this service works

Financial market data — stock prices, forex, crypto, commodities, economic indicators, technical analysis, and news sentiment.

## Output

Returns a JSON object containing a time-series of EMA values keyed by timestamp, along with payment settlement details (settled USDC amount, authorized max USDC) and a request tracking ID. The EMA data is nested under the 'data' field and reflects the computed exponential moving average for the specified symbol, interval, series type, and time period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "month": {
   "type": "string"
  },
  "symbol": {
   "type": "string"
  },
  "datatype": {
   "type": "string"
  },
  "interval": {
   "type": "string"
  },
  "series_type": {
   "type": "string"
  },
  "time_period": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alpha-vantage-ema-exponential-moving-average-via-locus-x402-68b154de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphavantage.x402.paywithlocus.com](https://www.zero.xyz/host/alphavantage.x402.paywithlocus.com/llms.txt)
