Skip to content
Fourohtwo

Technical analysis for a price series

x402-indicator-api.onrender.com/v1/indicators

Technical analysis for a price series. Send closing prices (oldest first, up to 5000) and get RSI, MACD, Bollinger Bands, SMA and EMA, plus a machine-readable summary: overbought/oversold state, MACD momentum and crossovers, and position relative to the bands.

BaseAnswering
POSThttps://x402-indicator-api.onrender.com/v1/indicators

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402-indicator-api.onrender.com/v1/indicators", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"indicators":["rsi","macd","bollinger"],"prices":[100,101.38,102.66,103.72,104.52,104.99,105.13,104.97,104.57,104.02,103.43,102.9,102.53,102.41,102.6,103.12,103.96,105.07,106.36,107.75,109.12,110.37,111.4,112.15,112.57,112.66,112.46,112.04,111.47,110.88,110.37,110.03,109.96,110.2,110.77,111.65,112.79,114.11,115.5,116.86]}),
});
console.log(await res.json());

Example input

{
  "indicators": [
    "rsi",
    "macd",
    "bollinger"
  ],
  "prices": [
    100,
    101.38,
    102.66,
    103.72,
    104.52,
    104.99,
    105.13,
    104.97,
    104.57,
    104.02,
    103.43,
    102.9,
    102.53,
    102.41,
    102.6,
    103.12,
    103.96,
    105.07,
    106.36,
    107.75,
    109.12,
    110.37,
    111.4,
    112.15,
    112.57,
    112.66,
    112.46,
    112.04,
    111.47,
    110.88,
    110.37,
    110.03,
    109.96,
    110.2,
    110.77,
    111.65,
    112.79,
    114.11,
    115.5,
    116.86
  ]
}