81trust / 100
Rsi
by RSI (relative strength index) in Onchain & crypto
x402 APIPassing, checked 3 h ago
Compute the relative strength index (Wilder's smoothing, default period 14) over a price series you supply, such as daily closes. Returns one value per input position (null until the first full period), the latest value, and a reading: overbought at 70 or above, oversold at 30 or below, else neutral. No market data is fetched: pass your own closes.
POST https://agent402.tools/api/rsi
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 202 ms typical, 202 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/rsi" \
-H "content-type: application/json" \
-d '{"period":14,"values":[44.34,44.09,44.15,43.61,44.33,44.83,45.1,45.42,45.84,46.08,45.89,46.03,45.61,46.28,46.28,46,46.03,46.41,46.22,45.64]}'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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Frsi
const res = await pay("https://agent402.tools/api/rsi", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"period":14,"values":[44.34,44.09,44.15,43.61,44.33,44.83,45.1,45.42,45.84,46.08,45.89,46.03,45.61,46.28,46.28,46,46.03,46.41,46.22,45.64]}),
});
console.log(await res.json());Example input
{
"period": 14,
"values": [
44.34,
44.09,
44.15,
43.61,
44.33,
44.83,
45.1,
45.42,
45.84,
46.08,
45.89,
46.03,
45.61,
46.28,
46.28,
46,
46.03,
46.41,
46.22,
45.64
]
}Example output
{
"count": 20,
"latest": 57.915,
"period": 14,
"reading": "neutral",
"rsi": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
70.4641,
66.2496,
66.4809,
69.3469,
66.2947,
57.915
]
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 202 ms | $0.001 |