Skip to main content
Loading market data…
GET/api/v1/macro/goldHobbyist tier+ · 30 req/min

Spot gold — London PM fix (FRED `GOLDPMGBD228NLBM`) — feed pending.

Gold price in USD per troy ounce, London PM fix. Some traders watch the gold/BTC ratio as a rotation gauge between the oldest and newest store-of-value assets. Stub returns an empty series with `meta.dataStatus = "not-yet-ingested"`.

Query parameters

All query parameters are optional unless marked required.

NameTypeRequiredDefaultDescription
daysnumberoptional365
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: "GOLDPMGBD228NLBM";
  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/gold?days=365"
Responsejson
{
  "data": { "series": "GOLDPMGBD228NLBM", "source": "fred", "days": 365, "latest": null, "points": [] },
  "meta": { "total": 0, "days": 365, "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.