Gold

Spot gold in US dollars. price is one troy ounce. /usd is the same quote, /units lists every unit, /history is what this process has fetched.

View Docs

Parameters

unit string

oz, g, 10g, tola, or kg. Defaults to oz.

Example: g

amount number

How many of that unit to price. Defaults to 1.

Example: 2

Responses

200 OK Success
{
  "ok": true,
  "metal": "gold",
  "symbol": "XAU",
  "currency": "USD",
  "price": 4286.9,
  "unit": "oz",
  "amount": 1,
  "totalUsd": 4286.9
}
400 BAD_REQUEST unknown unit
502 BAD_GATEWAY could not load the gold price