# claw402 TwelveData SMA Indicator via x402

> claw402 TwelveData SMA Indicator via x402 is a paid API for AI agents from claw402.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Fetches the Simple Moving Average (SMA) technical indicator for a given stock symbol and interval, paid per-call with USDC via the x402 protocol.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/twelvedata/indicator/sma
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/claw402-twelvedata-sma-indicator-via-x402-94ab5dd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e1wKyhpMQDVXPvVS65dsa

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-twelvedata-sma-indicator-via-x402-94ab5dd2
```

Example prompt: Can you get me the 20-period simple moving average for AAPL on a daily interval using TwelveData — I need the last 30 data points?

## When to prefer this

Use this endpoint when you need SMA technical indicator data and want to pay per-call in USDC without API keys or registration, leveraging the x402 micropayment protocol — ideal for agentic workflows that require on-demand financial data without managing subscriptions.

## Known failure modes

- Payment not received — 402 response if USDC payment is not completed
- Invalid symbol — returns error code if the ticker is not recognized by TwelveData
- Invalid interval — returns error if the interval string is not supported
- Empty data array — if no data is available for the requested parameters
- Network timeout — upstream TwelveData API may be unavailable

## How this service works

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

## Output

Returns a JSON object with a code field and a data array containing SMA values for the requested symbol, interval, and time period — suitable for technical analysis or charting.

## 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": {
      "symbol": {
       "type": "string"
      },
      "interval": {
       "type": "string"
      },
      "outputsize": {
       "type": "string"
      },
      "time_period": {
       "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-twelvedata-sma-indicator-via-x402-94ab5dd2/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)
