GET
/api/v1/macro/m2Hobbyist tier+ · 30 req/minU.S. M2 money supply (FRED `M2SL`) — feed pending.
Seasonally-adjusted M2 in billions of dollars. The classic 'global liquidity' proxy — rising M2 has a loose, lagged correlation with crypto rallies. Stub returns an empty series with `meta.dataStatus = "not-yet-ingested"` until the FRED adapter is wired into ingestion.
Query parameters
All query parameters are optional unless marked required.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| days | number | optional | 365 | Trailing window. Max 3650 (10 years). |
Response shape
Always wrapped in the standard envelope. Nullable fields are explicitly marked — treat missing numeric data as a real data-source gap, not as an error.
data payloadtypescript
// Wrapped in the standard envelope:
// {
// data: /* shape below */,
// meta?: { total?: number; limit?: number; offset?: number; ... }
// }
{
series: "M2SL";
source: "fred";
days: number;
latest: { ts: number; value: number } | null;
points: Array<{ ts: number; value: number }>;
}Example
Copy the curl, replace YOUR_KEY with a real key from your dashboard, and run.
Requestbash
curl -sS "http://localhost:3000/api/v1/macro/m2?days=365"Responsejson
{
"data": { "series": "M2SL", "source": "fred", "days": 365, "latest": null, "points": [] },
"meta": { "total": 0, "days": 365, "dataStatus": "not-yet-ingested", "unavailable": "not-yet-ingested" }
}Notes
- Series ID matches the FRED canonical identifier — safe to relay into charting libraries verbatim.
Next
Check the error code reference, or get an API key to try the request against your own account.