81trust / 100

Events Macro

by x402.swaphunt.dev in Markets & finance

x402 APIPassing, checked 2 h ago

Upcoming macro events (FOMC, CPI, NFP, etc.) with date, country and impact level, filterable to high-impact only. Use to avoid trading into scheduled volatility or to plan around it. Forward calendar; for past actuals use /macro/history.

GET https://x402.swaphunt.dev/v1/events/macro

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
71 ms typical, 71 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.swaphunt.dev/v1/events/macro?days=7&high_impact_only=false"
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%2Fx402.swaphunt.dev%2Fv1%2Fevents%2Fmacro
const res = await pay("https://x402.swaphunt.dev/v1/events/macro?days=7&high_impact_only=false");
console.log(await res.json());

Example input

{
  "days": 7,
  "high_impact_only": false
}

Example output

{
  "count": 4,
  "events": [
    {
      "country": "US",
      "date": "2026-07-10T12:30:00Z",
      "impact": "high",
      "name": "CPI"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40263 ms$0.003
5 h agoPassed402324 ms$0.003
10 h agoPassed40271 ms$0.003