# x402stock.xyz RSI Indicator

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

Returns RSI (Relative Strength Index) time-series values for a given stock ticker with configurable window, timespan, and price series type.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/indicators/rsi/AAPL
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-xyz-ba03825b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NWgiv2SiEf_2ZS0rJHOFm

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-xyz-ba03825b
```

Example prompt: Can you pull the 14-period daily RSI values for AAPL using closing prices, going back 30 bars, so I can see if it's overbought or oversold?

## When to prefer this

Use this endpoint when you need RSI momentum indicator data for a US-listed equity for technical analysis, trading signals, or overbought/oversold detection. Prefer this over generic market data endpoints when RSI specifically is required. It supports fine-grained control over window size, timespan granularity (minute to year), price series type, and adjustment.

## Known failure modes

- Invalid ticker symbol returns error or empty data
- Window or limit out of allowed range (window 1-2000, limit 1-5000) returns validation error
- Unsupported timespan or series_type enum value returns 400-level error
- Payment not fulfilled (x402) results in 402 Payment Required response
- Ticker with insufficient history for the requested window returns partial or empty values array

## How this service works

Relative Strength Index time series (momentum oscillator). Tune with `?window=` (default 14), `?timespan=`, `?series_type=`, `?limit=`. From x402stock, a pay-per-call market & economic data API for AI agents. No API key or account; pay in USDC via x402.

## Output

Returns a JSON object containing the ticker symbol, the indicator name ('RSI'), the count of returned values, an array of timestamped RSI values (with optional signal and histogram fields), the data source ('massive'), and the as-of date of the computation.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 30,
   "window": 14,
   "adjusted": true,
   "timespan": "day",
   "series_type": "close"
  }
 }
}
```

## 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"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "timespan",
      "window",
      "series_type",
      "adjusted",
      "limit"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "default": 30,
       "maximum": 5000,
       "exclusiveMinimum": 0
      },
      "window": {
       "type": "integer",
       "default": 14,
       "maximum": 2000,
       "exclusiveMinimum": 0
      },
      "adjusted": {
       "type": "boolean",
       "default": true
      },
      "timespan": {
       "enum": [
        "minute",
        "hour",
        "day",
        "week",
        "month",
        "quarter",
        "year"
       ],
       "type": "string",
       "default": "day"
      },
      "series_type": {
       "enum": [
        "open",
        "high",
        "low",
        "close"
       ],
       "type": "string",
       "default": "close"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ticker",
      "data",
      "source",
      "as_of"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "indicator",
        "count",
        "values"
       ],
       "properties": {
        "count": {
         "type": "number"
        },
        "values": {
         "type": "array",
         "items": {
          "type": "object",
          "required": [
           "timestamp",
           "value"
          ],
          "properties": {
           "value": {
            "type": "number"
           },
           "signal": {
            "type": "number"
           },
           "histogram": {
            "type": "number"
           },
           "timestamp": {
            "anyOf": [
             {
              "type": 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-xyz-ba03825b/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)
