Discovery and markets API

Which macro releases (CPI, jobs, GDP, rates) are due or just out?

Economic calendar for the next or last seven days: CPI, payrolls, GDP, PMIs and rate decisions with forecast, previous and actual, filtered by importance or country.

GET/api/external/discovery/macro-calendar

What it returns

Scheduled and just-published macroeconomic releases (inflation, jobs, GDP, PMIs, rate decisions, inventories) for about 25 economies, oldest first. range picks the next seven days (upcoming, the default), the last seven (recent) or both; importance keeps releases at or above 1 (low), 2 (medium) or 3 (high); country keeps one ISO country code (US, EU for the eurozone). Values are display strings as published, units included ("0.3%", "-129.6"); null when there is none. actual is null until the release is out. Two different series can share a name and time with different figures; both are listed. effect reads the published figure for markets: a list of bullish or bearish for an asset, [] when the impact is minor, null when not out yet. timeIsExact false means only the day is known. Release names are as the calendar writes them and end with the period they cover, e.g. (Aug) or (Q2).

Chains

This endpoint is not tied to a chain: it takes no chain in its request.

Request

Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.

curl -H "x-dex-data-key: $DEXDATA_API_KEY" \
  "https://api.dexdata.io/api/external/discovery/macro-calendar"
Parameters
ParameterDescription
range

query · string · optional

upcoming (next 7 days), recent (last 7 days) or both. Defaults to upcoming.upcomingrecentboth
importance

query · string · optional

Lowest importance kept: 1 low, 2 medium, 3 high. Defaults to 1 (all).123
country

query · string · optional

Keep one country, as an uppercase ISO 3166-1 alpha-2 code; EU is the eurozone.

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of Which macro releases (CPI, jobs, GDP, rates) are due or just out?
FieldTypeDescription
rangestringThe range answered.
fromintegerStart of the range, unix seconds.
tointegerEnd of the range, unix seconds.
eventsobject[]Releases in the range, oldest first.
events[].timeintegerRelease time, unix seconds.
events[].timeIsExactbooleanFalse when only the day is known.
events[].countrystringCountry or area name.
events[].countryCodestring | nullISO 3166-1 alpha-2 code, EU for the eurozone; null if unknown.
events[].namestringThe release, ending with the period it covers.
events[].importanceinteger1 low, 2 medium, 3 high.
events[].forecaststring | nullConsensus forecast, as published.
events[].previousstring | nullThe previous release's figure.
events[].revisedPreviousstring | nullThe previous figure as revised in this release, when it was.
events[].actualstring | nullThe published figure; null until it is out.
events[].effectobject[] | nullWhat the figure means for markets; [] minor impact, null not out yet or not read.
events[].effect[].directionstring
events[].effect[].assetstringe.g. US dollar, euro, crude oil, gold and silver.

Start building with DexData today

Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.

Get a free API key