# Exponential Moving Average (EMA) Technical Indicator

> Exponential Moving Average (EMA) Technical Indicator is a paid API for AI agents from marketdata.use.x402atlas.com, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-15).

Returns EMA values for any ticker (stocks, crypto, forex, options) across configurable timespan and window size for trend analysis.

## Facts

- Endpoint: GET https://marketdata.use.x402atlas.com/ema
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/exponential-moving-average-ema-technical-indicator-fd2bb320
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T8rBMUsNUkgb7p2eO_4fr

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 exponential-moving-average-ema-technical-indicator-fd2bb320
```

Example prompt: What's the 20-day EMA for AAPL using closing prices over the last 100 daily bars? Show me the results in descending order.

## When to prefer this

Use this endpoint when you need exponential moving average (EMA) values — which weight recent data more heavily than SMA — for any supported asset class (stocks, crypto, forex, options). Prefer over SMA when recency-weighted trend signals are needed for momentum or crossover strategies.

## Known failure modes

- Invalid or unrecognized ticker returns error or empty result
- Window size out of range causes rejection
- Timespan or series_type enum mismatch causes bad request
- Limit exceeds 5000 cap returns error
- Insufficient historical data for the requested window returns partial or empty series
- Payment not processed results in 402 response

## How this service works

Exponential Moving Average (EMA) technical indicator for any ticker — trend analytics for stocks, crypto, forex and options.

## Output

Returns a time-series of EMA data points for the requested ticker, each with a timestamp and computed EMA value, covering the configured window and timespan.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ticker"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 50000,
       "minimum": 1,
       "description": "Max points returned"
      },
      "order": {
       "enum": [
        "asc",
        "desc"
       ],
       "type": "string",
       "description": "Result ordering"
      },
      "ticker": {
       "type": "string",
       "description": "Asset-prefixed ticker, e.g. AAPL, X:BTCUSD"
      },
      "window": {
       "type": "integer",
       "maximum": 50000,
       "minimum": 1,
       "description": "Lookback window size"
      },
      "timespan": {
       "enum": [
        "minute",
        "hour",
        "day",
        "week",
        "month",
        "quarter",
        "year"
       ],
       "type": "string",
       "description": "Aggregate window unit used to compute the indicator"
      },
      "series_type": {
       "enum": [
        "open",
        "high",
        "low",
        "close"
       ],
       "type": "string",
       "description": "Price field used to compute the indicator"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "ticker",
      "indicator",
      "points"
     ],
     "properties": {
      "points": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "time",
         "value"
        ],
        "properties": {
         "time": {
          "type": "string",
          "format": "date-time",
          "description": "Reading timestamp."
         },
         "value": {
          "type": "number",
          "description": "Indicator value."
         }
        }
       },
       "description": "Normalized indicator readings, oldest or newest first per `order`."
      },
      "ticker": {
       "type": "string",
       "description": "Echo of the requested ticker."
 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "points": [
   {
    "time": "2024-01-02T00:00:00Z",
    "value": 182.34
   }
  ],
  "ticker": "AAPL",
  "indicator": "ema",
  "queried_at": "2024-01-02T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/exponential-moving-average-ema-technical-indicator-fd2bb320/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from marketdata.use.x402atlas.com](https://www.zero.xyz/host/marketdata.use.x402atlas.com/llms.txt)
