Base Endpoint
GET https://aurumrates.com/api/chart
Parameters
| Parameter | Required | Values | Description |
|---|---|---|---|
symbol | Yes | GC=F, SI=F, CL=F, etc. | Yahoo Finance commodity symbol |
range | Yes | 1d, 5d, 1mo, 3mo, 6mo, 1y, 5y, max | Time range for historical data |
interval | Yes | 1m, 5m, 15m, 1h, 1d, 1wk, 1mo | Data interval (1m only for 1d range) |
Supported Symbols
| Symbol | Commodity | Exchange |
|---|---|---|
GC=F | Gold | COMEX |
SI=F | Silver | COMEX |
CL=F | Crude Oil (WTI) | NYMEX |
BZ=F | Brent Crude | ICE |
PL=F | Platinum | NYMEX |
PA=F | Palladium | NYMEX |
HG=F | Copper | COMEX |
NG=F | Natural Gas | NYMEX |
Example Request
// Fetch today's gold prices (5-minute intervals)
fetch('https://aurumrates.com/api/chart?symbol=GC=F&range=1d&interval=5m')
.then(res => res.json())
.then(data => {
const result = data.chart.result[0];
const timestamps = result.timestamp;
const quotes = result.indicators.quote[0];
console.log('Latest price:', quotes.close[quotes.close.length - 1]);
});Example Response (Abbreviated)
{
"chart": {
"result": [{
"meta": {
"symbol": "GC=F",
"currency": "USD",
"exchangeName": "CMX",
"regularMarketPrice": 4380.50
},
"timestamp": [1712880000, 1712880300, ...],
"indicators": {
"quote": [{
"open": [4375.20, 4376.80, ...],
"high": [4378.50, 4380.10, ...],
"low": [4374.90, 4376.20, ...],
"close": [4376.80, 4379.50, ...],
"volume": [1250, 890, ...]
}]
}
}]
}
}Rate Limits & Caching
- Rate limit: 100 requests per hour per IP
- Cache: Responses are cached for 5 minutes at the edge (Vercel CDN)
- CORS: Enabled for all origins - use directly from browser JavaScript
- Authentication: None required
- Data source: Upstream data is sourced from Yahoo Finance. If the upstream provider changes their API or experiences downtime, responses may be temporarily unavailable. AURUM does not guarantee 100% uptime for this free-tier endpoint.
Embed Widget
For a no-code solution, use the AURUM embed widget - one line of HTML to add live gold prices to your site.