Skip to content
Fourohtwo

Forecast probability for every bracket of a weather market

agent402.tools/api/weather-market-brackets

Forecast probability for every bracket of a weather market. Send the place, the date and your brackets (label, min, max and the market price you hold for each): each bracket comes back with the share of up to 82 members (ECMWF IFS and NOAA GEFS) that land in it, your price beside it as sent. You supply brackets and prices; this tool reads no market feed and gives facts only, no rating or recommend

BasePolygonArbitrumMonadAvalancheSei+5Answering
POSThttps://agent402.tools/api/weather-market-brackets

Uptime100% of 1 check 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/weather-market-brackets", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"brackets":[{"label":"39 or below","max":39,"price":0.1},{"label":"40 to 49","max":49,"min":40,"price":0.35},{"label":"50 to 59","max":59,"min":50,"price":0.4},{"label":"60 or above","min":60,"price":0.15}],"place":"New York","rounding":"integer","units":"fahrenheit","variable":"temperature_max"}),
});
console.log(await res.json());

Example input

{
  "brackets": [
    {
      "label": "39 or below",
      "max": 39,
      "price": 0.1
    },
    {
      "label": "40 to 49",
      "max": 49,
      "min": 40,
      "price": 0.35
    },
    {
      "label": "50 to 59",
      "max": 59,
      "min": 50,
      "price": 0.4
    },
    {
      "label": "60 or above",
      "min": 60,
      "price": 0.15
    }
  ],
  "place": "New York",
  "rounding": "integer",
  "units": "fahrenheit",
  "variable": "temperature_max"
}