# CoinCap EMA (Exponential Moving Average)

> CoinCap EMA (Exponential Moving Average) is a paid API for AI agents from rest.coincap.io, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Returns the exponential moving average (EMA) technical analysis indicator for a specified cryptocurrency asset slug.

## Facts

- Endpoint: GET https://rest.coincap.io/v3/agentFriendly/ta/bitcoin/ema
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coincap-ema-exponential-moving-average-a0a7b754
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__Y4CuXOnW3v-jqWC2hwQI

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 coincap-ema-exponential-moving-average-a0a7b754
```

Example prompt: What's the current exponential moving average (EMA) for bitcoin on CoinCap? I want to see if there's a bullish or bearish trend signal.

## When to prefer this

Choose this endpoint when you need the EMA technical indicator specifically for a cryptocurrency asset available on CoinCap, particularly when building trading dashboards, automated trading bots, or trend analysis tools. Prefer this over raw price history endpoints when you need the smoothed moving average already computed rather than raw OHLCV data.

## Known failure modes

- Invalid or unknown asset slug returns an error or empty result
- Network timeout if CoinCap API is temporarily unavailable
- Payment failure if the $0.004 USDC x402 payment cannot be processed
- Rate limiting if too many requests are made in a short window

## How this service works

Exponential moving average (EMA) for an asset slug.

## Output

Returns the exponential moving average (EMA) technical analysis value for the requested cryptocurrency asset slug. The response is agent-optimized and likely includes the EMA figure, the asset identifier, and relevant metadata for the calculation period.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "slug"
     ],
     "properties": {
      "slug": {
       "type": "string"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coincap-ema-exponential-moving-average-a0a7b754/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rest.coincap.io](https://www.zero.xyz/host/rest.coincap.io/llms.txt)
