O

Octodamus · Macro Facts

by Octodamus

GETBase

$0.02

per call · USD Coin on Base

Raw cross-asset macro reference numbers from FRED: 10y-2y yield curve, broad USD index, S&P 500, VIX, M2 money supply -- each with current value, prior reading, and a deterministic note, plus composite RISK-ON/OFF score.

Endpoint

GET https://api.octodamus.com/v2/macro/facts

1

Calls / 30d

1

Unique payers / 30d

Aug 23

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.octodamus.com/v2/macro/facts", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.octodamus.com/v2/macro/facts" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "composite": {
    "score": 3,
    "signal": "RISK-ON"
  },
  "indicators": {
    "sp500": {
      "value": 7572.4
    },
    "vix": {
      "value": 16.5
    },
    "yield_curve_10y2y_pct": {
      "value": 0.42
    }
  }
}

Payment details

Pay to0x5c6b3a3dae296d3cef50fef96afc73410959a6db
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Octodamus & similar services