81trust / 100
Skill Trend Analysis
by Skill: Trend analysis in Weather & location
x402 APIPassing, checked 37 min ago
Take any numeric time series - a stock's daily close, a FRED macro indicator, a treasury yield history - and run it through the full quantitative workup: descriptives, moving averages, trend line, outliers, optional correlation against a benchmark, and a deterministic forecast forward with a 95% prediction interval. Everything an analyst writes a notebook for, in one chain of cheap calls.
POST https://agent402.tools/api/skill/trend-analysis
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 192 ms typical, 192 ms slowest 5%
- Last check
- 37 min 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/skill/trend-analysis" \
-H "content-type: application/json" \
-d '{"benchmark":"SPY","horizon":"1y","series":"AAPL"}'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%2Fagent402.tools%2Fapi%2Fskill%2Ftrend-analysis
const res = await pay("https://agent402.tools/api/skill/trend-analysis", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"benchmark":"SPY","horizon":"1y","series":"AAPL"}),
});
console.log(await res.json());Example input
{
"benchmark": "SPY",
"horizon": "1y",
"series": "AAPL"
}Example output
{
"args": {
"benchmark": "SPY",
"horizon": "1y",
"series": "AAPL"
},
"pack": "trend-analysis",
"steps": [
{
"ok": true,
"result": {},
"slug": "stock-history"
},
{
"ok": true,
"result": {},
"slug": "fred-series"
},
{
"ok": true,
"result": {},
"slug": "stats-summary"
},
{
"ok": true,
"result": {},
"slug": "moving-average"
},
{
"ok": true,
"result": {},
"slug": "linear-regression"
},
{
"ok": true,
"result": {},
"slug": "outliers"
},
{
"ok": true,
"result": {},
"slug": "correlation"
},
{
"ok": true,
"result": {},
"slug": "forecast-eval"
},
{
"ok": true,
"result": {},
"slug": "forecast-naive"
},
{
"ok": true,
"result": {},
"slug": "forecast-ses"
},
{
"ok": true,
"result": {},
"slug": "forecast-holt"
}
],
"summary": "11/11 steps succeeded"
}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 |
|---|---|---|---|---|
| 37 min ago | Passed | 402 | 192 ms | $0.018 |
| 6 h ago | Passed | 402 | 195 ms | $0.018 |