GET
/api/v1/macro/dxyHobbyist tier+ · 30 req/minU.S. dollar broad trade-weighted index (FRED `DTWEXBGS`) — feed pending.
Dollar strength proxy — we use the FRED broad trade-weighted index rather than ICE's proprietary DXY so the feed stays fully free-tier. Inverse correlation to risk assets is well-documented. Stub returns an empty series with `meta.dataStatus = "not-yet-ingested"` until the FRED adapter lands.
Query parameters
All query parameters are optional unless marked required.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| days | number | optional | 365 | Trailing window. Max 3650. |
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: "DTWEXBGS";
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/dxy?days=180"Responsejson
{
"data": { "series": "DTWEXBGS", "source": "fred", "days": 180, "latest": null, "points": [] },
"meta": { "total": 0, "days": 180, "dataStatus": "not-yet-ingested", "unavailable": "not-yet-ingested" }
}Next
Check the error code reference, or get an API key to try the request against your own account.