# Massive x402 API – RSI Indicator

> Massive x402 API – RSI Indicator is a paid API for AI agents from agent.massive.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns the Relative Strength Index (RSI) time series for a given US stock ticker, payable per-request via x402 micropayment with no account or API key required.

## Facts

- Endpoint: GET https://agent.massive.com/v1/indicators/rsi/%7BstockTicker%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/massive-x402-api-rsi-indicator-b5b348a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rQqDgyv969zvs6TaX5ken

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 massive-x402-api-rsi-indicator-b5b348a8
```

Example prompt: What's the 14-day RSI for AAPL using daily close prices for the last 30 data points, in descending order?

## When to prefer this

Choose this endpoint when you need RSI technical indicator data for US equities without requiring an account, API key, or subscription — ideal for pay-per-use agent workflows where you only query occasionally. Prefer this over traditional data providers when you want micropayment-based access via x402. It is especially suited for AI agents that need on-demand financial signal retrieval with minimal setup overhead. Use alternatives if you need bulk historical downloads cheaper than $0.01/call or need non-US markets.

## Known failure modes

- Payment not settled or x402 micropayment fails — returns 402 with PAYMENT-REQUIRED header containing payment terms
- Invalid or unsupported ticker symbol — returns error status
- Timestamp range yields no data (e.g. weekend/holiday with no trading activity)
- Window size too large relative to available data — may return empty values array
- limit exceeds maximum of 5000 — validation error
- Invalid timespan or series_type enum value — bad request error

## How this service works

US stock market data, sold per request over x402. Every path here answers 402 with the payment terms in the PAYMENT-REQUIRED header, and answers with the data once the payment settles. No account, no API key, no subscription.

## Output

A JSON object containing an array of RSI values (each with a numeric RSI value and a millisecond timestamp), a reference URL to the underlying aggregate data used for the calculation, a next_url cursor for pagination, and a request_id. Results are ordered by timestamp according to the requested sort order.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "stockTicker"
     ],
     "properties": {
      "stockTicker": {
       "type": "string",
       "description": "Specify a case-sensitive ticker symbol for which to get relative strength index (RSI) data. For example, AAPL represents Apple Inc."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 5000,
       "description": "Limit the number of results returned, default is 10 and max is 5000"
      },
      "order": {
       "enum": [
        "asc",
        "desc"
       ],
       "type": "string",
       "default": "desc",
       "description": "The order in which to return the results, ordered by timestamp."
      },
      "window": {
       "type": "integer",
       "default": 14,
       "description": "The window size used to calculate the relative strength index (RSI)."
      },
      "adjusted": {
       "type": "boolean",
       "default": true,
       "description": "Whether or not the aggregates used to calculate the relative strength index are adjusted for splits. By default, aggregates are adjusted. Set this to false to get results that are NOT adjusted for splits."
      },
      "timespan": {
       "enum": [
        "minute",
        "hour",
        "day",
        "week",
        "month",
        "quarter",
        "year"
       ],
       "type": "string",
       "default": "day",
       "description": "The size of the aggregate time window."
      },
      "timestamp": {
       "type": "string",
       "description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp."
      },
      "series_type": {
       "enum": [
        "open",
        "high",
        "low",
        "close"
       ],
       "type": "string",
       "default": "close",
       "description": "The price in the aggregate which will be used to calculate the relative strength index. i.e. 'close' will result in using close prices to calculate the relative strength index (RSI)."
      },
   
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "OK",
  "results": {
   "values": [
    {
     "value": 82.19,
     "timestamp": 1517562000016
    }
   ],
   "underlying": {
    "url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25"
   }
  },
  "next_url": "https://api.massive.com/v1/indicators/rsi/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy",
  "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/massive-x402-api-rsi-indicator-b5b348a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.massive.com](https://www.zero.xyz/host/agent.massive.com/llms.txt)
