# x402stock EMA Indicator

> x402stock EMA Indicator is a paid API for AI agents from x402stock.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-01).

Returns Exponential Moving Average (EMA) values for a given US-listed stock ticker

## Facts

- Endpoint: GET https://x402stock.vercel.app/api/v1/indicators/ema/%7Bticker%7D?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-ema-indicator-098b4793
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U1Ap1hKb0DcywWMtjgMxH

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 x402stock-ema-indicator-098b4793
```

Example prompt: What's the current EMA for Apple stock (AAPL)? I want to see the exponential moving average values to gauge its price trend.

## When to prefer this

Choose this endpoint when you need EMA technical indicator values for US-listed stocks without setting up API keys or accounts. It is ideal for AI agents that need pay-per-use, low-friction access to smoothed price trend data via USDC micropayments. Prefer this over brokerage APIs when you want simple REST access with no subscription commitment.

## Known failure modes

- Invalid or unrecognized ticker symbol returns an error
- Payment not provided or insufficient USDC results in HTTP 402 response
- Ticker not listed on US exchanges returns no data
- Network timeout on the upstream market data provider
- Request for a ticker with insufficient price history may return fewer data points than expected

## How this service works

US stock prices, snapshots, OHLC bars, fundamentals, corporate actions, technical indicators and news for AI agents. No API keys. No accounts. Pay per request in USDC via x402.

## Output

A JSON object containing an array of EMA data points (each with a numeric value and ISO 8601 timestamp), the total count of values, the indicator name ('ema'), the ticker symbol, and an as-of timestamp indicating data freshness. Data sourced from Massive market data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "count": 2,
   "values": [
    {
     "value": 275.2846,
     "timestamp": "2026-05-28T12:00:00.000Z"
    },
    {
     "value": 274.0422,
     "timestamp": "2026-05-27T12:00:00.000Z"
    }
   ],
   "indicator": "ema"
  },
  "as_of": "2026-05-28T12:00:00.000Z",
  "source": "massive",
  "ticker": "AAPL"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-ema-indicator-098b4793/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.vercel.app](https://www.zero.xyz/host/x402stock.vercel.app/llms.txt)
