79trust / 100

Indicators Rsi

by Massive in Markets & finance

x402 APIPassing, checked 2 min ago

Get the relative strength index (RSI) for a ticker symbol over a given time range. Can't find what you're looking for? POST feedback to /feedback, no charge.

GET https://agent.massive.com/v1/indicators/rsi/:stockTicker

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
348 ms typical, 348 ms slowest 5%
Last check
2 min ago
Next check
in 30 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent.massive.com/v1/indicators/rsi/:stockTicker?adjusted=true&expand_underlying=false&limit=10&order=desc&series_type=close&timespan=day&window=14"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent.massive.com%2Fv1%2Findicators%2Frsi%2F%3AstockTicker
const res = await pay("https://agent.massive.com/v1/indicators/rsi/:stockTicker?adjusted=true&expand_underlying=false&limit=10&order=desc&series_type=close&timespan=day&window=14");
console.log(await res.json());

Example input

{
  "adjusted": true,
  "expand_underlying": false,
  "limit": 10,
  "order": "desc",
  "series_type": "close",
  "timespan": "day",
  "window": 14
}

Example output

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

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 min agoPassed402348 ms$0.01
3 h agoPassed402387 ms$0.01
8 h agoPassed402107 ms$0.01