Holt's linear trend method
agent402.tools/api/forecast-holt
Holt's linear trend method - level + trend (no seasonality). Two smoothing parameters: alpha (level) and beta (trend). Forecast extrapolates as a straight line from the last fitted level along the last fitted trend, so it grows or shrinks linearly with horizon.
POST
https://agent402.tools/api/forecast-holtUptime100% 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://agent402.tools/api/forecast-holt", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"beta":0.3,"alpha":0.5,"values":[100,105,111,118,124,131,137,144,150,157],"horizon":3}),
});
console.log(await res.json());Example input
{
"beta": 0.3,
"alpha": 0.5,
"values": [
100,
105,
111,
118,
124,
131,
137,
144,
150,
157
],
"horizon": 3
}