# x402stock Technicals API

> x402stock Technicals API is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Returns key technical indicators (MACD, RSI, EMA, SMA, price change) for a given US stock or ETF ticker symbol, paid per call in USDC via x402.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/technicals/%7Bticker%7D
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-technicals-api-c4619349
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o8VNiaqTH8B28ig51Wj4Z

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-technicals-api-c4619349
```

Example prompt: Can you pull the technical indicators for AAPL — I want to see the RSI, MACD, EMA-20, and SMA-50 to get a sense of whether it's overbought and where it sits relative to its moving averages?

## When to prefer this

Use this endpoint when an AI agent needs a quick, structured summary of standard technical indicators (MACD, RSI, EMA, SMA) for a single US stock or ETF ticker without requiring API key setup — ideal for pay-per-use agentic workflows on Base using USDC via the x402 protocol. Prefer over full brokerage APIs when you only need technicals and want zero-account-setup friction.

## Known failure modes

- Invalid or unsupported ticker symbol returns an error
- Payment not settled via x402 returns 402 Payment Required
- Network or upstream data provider outage returns 5xx
- Malformed ticker path parameter returns 400 Bad Request
- Data may be delayed or unavailable outside market hours

## How this service works

Pay-per-call market and economic data API for AI agents: US stocks, ETFs and options, forex, crypto and on-chain perps, energy commodities, US and global macro (Fed, CPI, jobs, GDP, Treasury, World Bank), SEC filings, congressional trades, and market sentiment. No API keys, no accounts. Pay per request in USDC via x402 on Base.

## Output

A JSON object containing: MACD (value, signal line, histogram, position relative to signal), RSI-14 (numeric value and zone label like 'overbought'), EMA-20 (value and % distance from price), SMA-50 (value and % distance from price), last price and percent change — all timestamped and attributed to the requested ticker.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "macd": {
    "value": 10.3909,
    "signal": 9.7761,
    "position": "above_signal",
    "histogram": 0.6148
   },
   "price": {
    "last": 311.35,
    "change_percent": -0.371
   },
   "ema_20": {
    "value": 297.8869,
    "position": "above",
    "price_vs_percent": 4.52
   },
   "rsi_14": {
    "zone": "overbought",
    "value": 78.67
   },
   "sma_50": {
    "value": 275.2846,
    "position": "above",
    "price_vs_percent": 13.1
   }
  },
  "as_of": "2026-05-29T20:00:00.000Z",
  "source": "x402stock",
  "ticker": "AAPL"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-technicals-api-c4619349/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
