Cette page est actuellement disponible en anglais. Ouvrir la page en anglais
Live release feed
Release-timestamped macro data for FX backtests
Point-in-time history
USD 50/month
Essai gratuit
Google Sheets integration

Use FXMacroData in Google Sheets

Pull macroeconomic indicators, FX rates, commodities, release calendars, and catalogue metadata into spreadsheet cells with Apps Script custom functions, a sidebar importer, or direct production API URLs.

Sheets workflows

Use Apps Script custom functions, sidebar importers, or direct API URLs to bring FXMacroData records into shared research workbooks.

Auth model

USD indicator, catalogue, and calendar examples can run without a key. Non-USD and protected endpoint families use a key saved from the sidebar.

Data shape

Functions return spill ranges. The sidebar importer writes the same tabular data into the selected output range.

How a user connects the API today

1. Create an API key

Sign in to FXMacroData, open API management, and generate a key for the account or subscription.

2. Save it in Sheets

In your own Apps Script project, store the key in user-scoped script properties. Keep it out of shared sheet cells and screenshots.

3. Use formulas

Start with public USD and FX formulas, then use the saved key for non-USD indicators and commodities.

=FXMACRO_INDICATOR("usd","inflation")
=FXMACRO_INDICATOR("eur","inflation","2024-01-01")
=FXMACRO_COMMODITY("gold","2024-01-01")

4. Import from the sidebar

Select an empty cell, open the FXMacroData sidebar, choose a dataset, and click Insert at selected cell to write a static table.

5. Direct HTTP access

The same key works as an api_key query parameter for direct formulas, scripts, and browser smoke tests.

https://api.fxmacrodata.com/v1/announcements/eur/inflation?api_key=YOUR_API_KEY

Custom functions

Each function returns a table. Indicator, FX, and commodity functions auto-page API responses in batches of 100 rows up to the requested row cap.

Function Purpose Example
FXMACRO_INDICATOR Macro indicator time series such as inflation, GDP, unemployment, and policy rates. =FXMACRO_INDICATOR("usd","inflation")
FXMACRO_FOREX FX spot-rate history for currency pairs. =FXMACRO_FOREX("eur","usd","2024-01-01")
FXMACRO_COMMODITY Commodity and energy series such as gold, WTI oil, Brent oil, and natural gas. =FXMACRO_COMMODITY("gold")
FXMACRO_CALENDAR Upcoming economic release dates for a currency. =FXMACRO_CALENDAR("usd")
FXMACRO_CATALOGUE Available indicator slugs and metadata for a currency. =FXMACRO_CATALOGUE("aud")

API endpoints behind the formulas

Apps Script calls the same production API documented on this site.

https://api.fxmacrodata.com/v1/announcements/usd/inflation?api_key=YOUR_API_KEY
https://api.fxmacrodata.com/v1/forex/eur/usd?api_key=YOUR_API_KEY
https://api.fxmacrodata.com/v1/commodities/gold?api_key=YOUR_API_KEY
https://api.fxmacrodata.com/v1/calendar/usd?api_key=YOUR_API_KEY
https://api.fxmacrodata.com/v1/data_catalogue/usd

Sheets workflow options

Use custom functions for repeatable refreshes, sidebar imports for analyst-friendly table loads, or direct API calls when you want transparent formulas.

Keep API keys in user-scoped script properties or your own secret manager rather than shared cells. For support, contact info@fxmacrodata.com.

Related docs

AI Answer-Ready

Key Facts

Page
Google Sheets
Section
Documentation
Canonical URL
https://fxmacrodata.com/fr/documentation/google-sheets
Source
FXMacroData editorial and official publisher references
Last Updated
See page metadata

Provenance And Trust

Cite the canonical URL and source field above. Where available, this page maps to official publisher releases and timestamped updates.

Quick Q&A

What is this page about? This page explains Google Sheets with directly usable context for trading, research, and API workflows.

What source should be cited? Use the canonical URL and the listed source field; cite official publisher references when available.

How fresh is this content? The last updated value above reflects the page metadata or latest available data timestamp.

Can this be used in AI assistants? Yes. This section is intentionally structured for retrieval and citation in chat assistants.

Prompt Packs

Use these in ChatGPT, Claude, Gemini, Mistral, Perplexity, or Grok for consistent source-aware outputs.

Share page X LinkedIn Email