# x402stock RSI Indicator

> x402stock 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 Relative Strength Index (RSI) values for a given ticker symbol over a configurable time window and series type

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/indicators/rsi/%7Bticker%7D
- 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-rsi-indicator-4e9f7983
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I0c9Hn3M8L8JSd-dtfhOR

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-rsi-indicator-4e9f7983
```

Example prompt: What's the current 14-day daily RSI for AAPL based on closing prices — give me the last 30 values 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 US stocks, ETFs, forex, or crypto tickers and want pay-per-call pricing with no account or API key setup. Prefer this over general market data endpoints when specifically performing technical analysis or checking overbought/oversold conditions. Ideal for AI agents making autonomous trading analysis calls where per-request USDC micropayments via x402 on Base are acceptable.

## Known failure modes

- Invalid or unknown ticker returns an error or empty data array
- Window parameter too large (above 2000) returns a validation error
- Limit exceeding 5000 causes a bad request error
- Payment not provided or insufficient USDC causes a 402 Payment Required response
- Unsupported timespan enum value returns a validation error
- Unsupported series_type enum value returns a validation error

## 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 the ticker symbol, indicator name ('rsi'), an array of timestamped RSI values (each with a numeric value and optional signal/histogram fields), total count of values returned, data source identifier, and an as_of timestamp indicating data freshness.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "pathParams": {
   "ticker": "AAPL"
  },
  "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)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "count": 2,
   "values": [
    {
     "value": 61.42,
     "timestamp": "2026-05-28T12:00:00.000Z"
    },
    {
     "value": 58.9,
     "timestamp": "2026-05-27T12:00:00.000Z"
    }
   ],
   "indicator": "rsi"
  },
  "as_of": "2026-05-28T12:00:00.000Z",
  "source": "x402stock",
  "ticker": "AAPL"
 }
}
```

## More

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