# claw402 Polygon EMA (Exponential Moving Average) Endpoint

> claw402 Polygon EMA (Exponential Moving Average) Endpoint is a paid API for AI agents from claw402.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns Exponential Moving Average (EMA) technical indicator data for a given stock ticker, paid per-call via USDC on Polygon network with no API key required.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/polygon/ema
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/claw402-polygon-ema-exponential-moving-average-endpoint-3e9c8d11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_77sfbi8FtEL0oL45IeGLo

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 claw402-polygon-ema-exponential-moving-average-endpoint-3e9c8d11
```

Example prompt: What's the exponential moving average for AAPL using a daily timespan, a window of 20, and close prices as the series type — give me the last 10 results in descending order?

## When to prefer this

Use this endpoint when you need EMA technical indicator data for US equities without registering for a traditional API key, and you prefer pay-per-call USDC micropayments via the x402 protocol. Ideal for lightweight algorithmic trading agents, backtesting scripts, or financial dashboards that need on-demand EMA calculations without subscription overhead.

## Known failure modes

- Missing required stockTicker parameter returns empty or error response
- Invalid ticker symbol returns empty data array
- Unsupported timespan or series_type enum value causes malformed request
- Insufficient USDC balance or payment failure blocks the request at the x402 payment layer
- Rate limiting or network issues at the underlying Polygon.io data source may return empty data
- Out-of-range or future timestamps may return no data

## How this service works

Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.

## Output

A JSON object with a status code (0 for success) and a data array containing time-series EMA values for the requested ticker, timespan, window, and series type. Each data point includes the EMA value and its corresponding timestamp.

## 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",
     "properties": {
      "limit": {
       "type": "string"
      },
      "order": {
       "type": "string"
      },
      "window": {
       "type": "string"
      },
      "adjusted": {
       "type": "string"
      },
      "timespan": {
       "type": "string"
      },
      "timestamp": {
       "type": "string"
      },
      "series_type": {
       "type": "string"
      },
      "stockTicker": {
       "type": "string"
      },
      "expand_underlying": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": 0,
  "data": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/claw402-polygon-ema-exponential-moving-average-endpoint-3e9c8d11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claw402.ai](https://www.zero.xyz/host/claw402.ai/llms.txt)
