Helious › Developers › Macro data API for gold (XAU/USD)
Helious · API

Macro data API for gold (XAU/USD)

Helious is a macro data API for gold traders that returns what moves XAU/USD in one place: the dollar, Treasury yields, the odds of a Fed cut or hike, inflation breakevens, gold's implied volatility and gold's correlation with each of them, over REST and an MCP server.

Gold is priced off the dollar, the real interest rate and fear, and the inputs to each have an endpoint here: the cross-asset board with the gold row and a read of what is driving the session, the Fed odds per meeting, the Treasury curve, every inflation measure with the 5-year and 10-year breakevens as monthly averages, the gold volatility index and the correlation matrix. The rate odds, the calendar and the inflation reading answer with no key; the price boards need a free account key.

Why Helious

  • The gold row, and why it moved. /v1/context returns gold under cross_asset.commodities with last and change_pct, the dollar index beside it under cross_asset.fx, and a driver read of what is moving the session.
  • Spot or future, stated. The gold row carries instrument: spot when the price is spot gold, the number an XAU/USD chart tracks, and future when it is the front-month future.
  • Gold's correlations, computed. /v1/correlations holds gold against the 10-year and 5-year Treasury yields, the S&P 500, the dollar, crude oil, a high yield credit ETF and the VIX over 30, 60, 90 and 120 trading days.
  • Fed odds per meeting, with no key. /v1/rate-odds gives the probability of a cut or a hike at each remaining FOMC meeting, and /v1/rate-path the fed funds strip contract by contract with the 3-month SOFR strip beside it.
  • Breakevens beside every inflation measure. /v1/inflation returns the 5-year and 10-year breakevens as monthly averages, with headline and core CPI and PCE. For an approximate real rate, set the breakeven against the nominal yield of the same tenor on /v1/rates.
  • Gold's own volatility. /v1/vol carries GVZ, the gold volatility index, with its level, its change and its one-year percentile.
  • The releases that move it. /v1/calendar holds each release with its forecast and, once it prints, the actual and the surprise in standard deviations where the release has a consensus and past prints to scale against.

What it is not: a candle history or a broker's XAU/USD quote. The gold price here is one row on a cross-asset board; the rest is the macro data around it. How each driver works, and which regimes have suited being long gold, is in How to trade gold (XAU/USD) on macro data.

Your first call

This is market data, so it needs a free account key. With no key the same call answers with the steps to get one, not numbers. Get a free key.

Terminal
curl -H "Authorization: Bearer hel_your_key_here" "https://api.helious.io/v1/correlations"
Python
import requests

r = requests.get("https://api.helious.io/v1/correlations",
                 headers={"Authorization": "Bearer hel_your_key_here"}, timeout=15)
r.raise_for_status()
board = r.json()["data"]["current"]["data"]
w = board["windows"][str(board["default"])]      # the 60-day window
gold = w["labels"].index("Gold")
for label, rho in zip(w["labels"], w["matrix"][gold]):
    if label != "Gold" and rho is not None:
        print(f"Gold against {label}: {rho:+.2f}")

On the matrix of 2 December 2026 this printed gold at +0.54 against the S&P 500, +0.52 against the high yield credit ETF, -0.35 against crude oil, -0.34 against the VIX, -0.09 against the dollar, +0.05 against the 5-year yield and +0.02 against the 10-year yield, over 60 trading days. The correlation API page has the full answer and every field.

Which call answers each gold question

Gold questionRESTMCP toolWith no key
Why is gold moving right now?/v1/contextget_market_contextThe steps to get a key; a free key reads it an hour behind
Is the dollar strong against the whole basket?/v1/fxget_fx_boardThe steps to get a key; a free key reads it an hour behind
How is gold correlating with the dollar and yields?/v1/correlationsget_correlationsThe steps to get a key; a free key reads it an hour behind
How volatile is gold expected to be?/v1/volget_vol_boardThe steps to get a key; a free key reads it an hour behind
Where are nominal yields and the curve?/v1/rates, /v1/treasuryget_rates_and_curve, get_treasury_curveThe steps to get a key; a free key reads it an hour behind
What is the Fed priced to do?/v1/rate-odds, /v1/rate-pathget_rate_odds, get_rate_pathAnswers with numbers on every plan
Where are breakevens and every inflation measure?/v1/inflationget_inflationAnswers, with a new print an hour behind
What prints this week, and how big was the surprise?/v1/calendarget_economic_calendarAnswers, with a new print an hour behind

How it compares

A price feed gives the XAU/USD quote and nothing about why it moved. Helious gives the other side: the dollar, the curve, the Fed odds, the breakevens, gold's volatility and its correlations, each answer opening with a sentence a person or an assistant can quote.

How to trade gold (XAU/USD) on macro data

What it costs

Every plan sees the same endpoints and the same response shapes, so code written on the free tier keeps working when you upgrade. A data call is 1 credit.

PlanPriceHistoryFreshnessCredits
No key$01 day1 hour behind50 credits a month, shared by your network block; 5 sample answers per MCP conversation
Free key$0None1 hour behind; one call live for 5 credits with fresh=1100 credits a month
Starter$14.99 a month12 monthsNews, prints and auctions live; market prices an hour behind1,500 credits a month
Pro$39.99 a month24 monthsLive, plus the live WebSocket stream on 2 connections a key3,000 credits a month
Ultimate$99 a month10 yearsLive, plus the live WebSocket stream on 5 connections a key, commercial use, and redistribution by separate written agreementNo cap

The rate odds, the rate path, the calendar and the inflation reading answer with no key. The price boards on this page (/v1/context, /v1/fx, /v1/correlations, /v1/vol, /v1/rates and /v1/treasury) return the steps to get a key instead of numbers until the call carries one; a free account key reads them an hour behind. On /v1/correlations, /v1/vol and /v1/fx, live means the newest stored board, recalculated about once an hour on weekdays, not a tick-by-tick quote.

Questions

Is there an API for the macro data that moves gold (XAU/USD)?

Yes. Helious serves it over REST at https://api.helious.io and over an MCP server: the cross-asset board with the gold row on /v1/context, the dollar on /v1/fx, Treasury yields on /v1/rates, the Fed odds on /v1/rate-odds, breakevens on /v1/inflation, the gold volatility index on /v1/vol and gold's correlations on /v1/correlations.

Does Helious give the gold price?

Yes, as one row of the cross-asset board on /v1/context: the last price and the change on the day, marked spot when it is spot gold and future when it is the front-month future. The board needs a free account key. It is not a candle history or a broker's quote.

How do I get gold's correlation with the dollar and yields?

GET /v1/correlations returns a matrix over 30, 60, 90 and 120 trading days that includes gold, the dollar index and the 10-year and 5-year Treasury yields. Read gold's row. It needs a free account key.

Can I use it beside MT5, MT4 or TradingView?

An MT5 or MT4 Expert Advisor can call the REST API with WebRequest once https://api.helious.io is on the platform's list of allowed addresses. TradingView's Pine Script cannot call an outside API, so there the data sits beside the chart or behind a webhook to your own server. The blog post linked on this page has the MQL5 fragment.

Can an AI assistant answer gold questions with it?

Yes. On the MCP server at https://api.helious.io/mcp, get_rate_odds, get_inflation and get_economic_calendar answer with no account. get_market_context, get_correlations, get_vol_board and get_fx_board answer once the client is connected to a Helious account; a free one works.

What does it cost?

The rate odds, the calendar and the inflation reading answer with no key. A free account key gets 100 credits a month and reads every price board an hour behind for 1 credit a call, or its newest reading for 5 credits with fresh=1. Starter is $14.99 a month, Pro is $39.99 with the newest board on every call, and Ultimate is $99.