You're browsing as a guest. Run 1 free backtest and explain 1 strategy per day, or to unlock everything.
Some features are not optimized for mobile yet. For the best experience, please use the desktop version.
NEW · FOR QUANTS & DEVELOPERS

Economic Data API with point-in-time history

120+ economic indicators and 9 central banks across 14 economies, captured seconds after release and stored exactly as first published. Backtest macro strategies on what the market actually knew, not today’s revised data.

Read the docs
14
economies
120+
indicators & decisions
2015
US first prints since
~1 s
polling at release time

Why this data

First prints, not revised data

Every release stored exactly as it was first published, alongside the prior value and its revision. Most free sources only keep today’s revised numbers.

As-of queries

Ask for any series as it stood on a past date. Backtests see only what traders could have known, with no look-ahead bias from later revisions.

Captured seconds after release

Key US releases are read straight from the agencies (BLS, Census, BEA, Fed, DOL) as they publish, with capture latency recorded on every print.

Surprise scores

Each release scored against a model forecast, plus a daily economic surprise index per country for growth and inflation.

Central bank decisions

Fed, ECB, Bank of England, Bank of Japan, Bank of Canada, RBA, SNB, Riksbank and Norges Bank, cross-checked nightly against the BIS.

Push alerts

Get each number pushed to your server the moment we capture it: signed webhooks, filtered by country, indicator and importance.

Bulk CSV

Download the full release history in one request to seed a research database, then poll for updates.

Capture log: speed and accuracy

The public capture log starts with the US releases on 25 November (PCE, durable goods, jobless claims, new home sales) and fills in automatically as each number comes out.

Coverage

🇺🇸 United States🇪🇺 Euro area🇩🇪 Germany🇫🇷 France🇮🇹 Italy🇪🇸 Spain🇬🇧 United Kingdom🇯🇵 Japan🇨🇦 Canada🇦🇺 Australia🇨🇭 Switzerland🇸🇪 Sweden🇳🇴 Norway🇧🇷 Brazil

Inflation (CPI, PCE, PPI, HICP), labour (payrolls, unemployment, claims, wages), GDP, retail sales, industrial production, business surveys, housing, trade, and policy rate decisions.

Plans

Pro
API Lite
$49/mo
  • ✓Everything in Algovex Pro
  • ✓Last 2 years of release history
  • ✓As-of queries back 2 years
  • ✓1,000 requests / day
  • ✓Live updates endpoint
Pro + Data
Full data API
$99/mo
  • ✓Everything in Algovex Pro
  • ✓Full first-print history (US back to 2015)
  • ✓As-of queries over the full history
  • ✓Push alerts by webhook (3 endpoints)
  • ✓20,000 requests / day
  • ✓Bulk CSV downloads

Both include the full Algovex platform: unlimited backtests, AI strategy builder and analyst, and paper trading. Annual billing saves up to 17%.

API keys

Create an account to get a key

Sign up on Pro or Pro + Data, then create and revoke keys here.

Log in

Quickstart

Send your key in the Authorization header (or X-API-Key). Responses are JSON: {"data": …, "meta": …}.

curl -H "Authorization: Bearer $ALGOVEX_KEY" \
  "https://algovex.ai/api/macro/v1/calendar/?country=US,EZ&importance=high"
import os, requests

s = requests.Session()
s.headers["Authorization"] = f"Bearer {os.environ['ALGOVEX_KEY']}"

# Every US CPI first print since 2015, with the surprise vs our forecast
r = s.get("https://algovex.ai/api/macro/v1/releases/",
          params={"indicator": "us-cpi-mom", "start": "2015-01-01"})
for row in r.json()["data"]:
    print(row["release_date"], row["actual"], row["forecast"], row["surprise_z"])

# Payrolls as the data stood on 2024-06-01 (no later revisions)
s.get("https://algovex.ai/api/macro/v1/series/us-nonfarm-payrolls/", params={"as_of": "2024-06-01"}).json()

# Everything, as CSV (Pro + Data)
open("releases.csv", "wb").write(s.get("https://algovex.ai/api/macro/v1/bulk/releases/").content)

Endpoints

GET /indicators/
country, category, type
Every indicator we track, with units, release time and how far back first-print history goes.
GET /indicators/{code}/One indicator, plus its last and next release.
GET /calendar/
start, end, country, importance
Scheduled and released events in a date range (default: yesterday to 7 days ahead).
GET /releases/
indicator (required), start, end, kind, limit
Release history: each number exactly as first published, with the previous value, its revision, our forecast and the surprise.
GET /releases/{id}/One release in full: summary line, AI commentary, every site quoting the consensus (value, quote, link) and the prediction-market odds for each outcome.
GET /updates/
since
Releases captured since a timestamp. Poll every few seconds around release times; pass back meta.server_time.
GET /series/{code}/
as_of, start, end
The whole series as it stood on a past date, before later revisions.
GET /odds-history/{indicator}/
start, end, venue
Every prediction-market snapshot (Kalshi, Polymarket) for the releases in the date range: outcome buckets with probabilities, implied median and probability-weighted average, timestamped when the prices were current and never after the release. Hourly in the last 48 hours, 6-hourly before; US data and Fed/BoC/RBA/SNB decisions since 2021. The pre-release odds behind the backtester's market-odds signals.
GET /surprise-index/
country, kind, basis, start, end
Daily economic surprise index (growth or inflation) per country. basis=model (vs consensus, else our forecast; default) or markets (vs prediction-market expectations, consensus fallback; US since 2023).
GET /bulk/releases/
country, indicator, kind
CSV of every released print in one request (Pro + Data).
GET /usage/Your plan, rate limits and request counts.

All paths are under https://algovex.ai/api/macro/v1. Dates are YYYY-MM-DD; list parameters are comma-separated.

Webhooks

Each release we capture live is POSTed to your endpoints as JSON within a second or so, with the same fields as /v1/releases/. Respond with any 2xx status; failed deliveries are retried for about an hour and an endpoint is paused after 20 failures in a row. Verify the X-Algovex-Signature header with your signing secret and reject old timestamps:

import hashlib, hmac, time

def verify(raw_body: bytes, header: str, secret: str, tolerance=300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    signed = f"{parts['t']}.".encode() + raw_body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts["v1"]) and abs(time.time() - int(parts["t"])) < tolerance

# payload: {"id": "dlv_123", "type": "release.published", "created": "...Z",
#           "data": {"indicator": "us-cpi-mom", "actual": 0.3, "forecast": 0.2, "latency_seconds": 1.4, ...}}

Release fields

actualThe value as first published on release day (not later revisions).
previous / previous_revisedThe prior period before this release, and as revised in it.
consensusEconomist consensus where we found one, as reported by a third-party site (frozen 10 minutes before the release).
consensus_source / consensus_urlPublisher and page the consensus figure was taken from.
market_implied / market_kalshi / market_polymarketPrediction-market implied median from the last Kalshi and Polymarket prices before the release (average, and per venue). Kalshi history back to 2021 for US CPI, 2023 for Fed decisions.
forecastAlgovex model forecast (statistical baseline, not economist consensus).
commentaryTwo-sentence AI context written seconds after the release; every number in it is checked against our data. Webhooks and /releases/{id}/ also carry summary, a one-line data-only recap.
surprise_zActual minus forecast, scaled by the typical recent miss.
point_in_timefalse when the value was reconstructed from today’s revised data, not captured on the day.
history_sourcelive (captured by us at release time), alfred (US vintage archive), oecd (first OECD monthly snapshot containing the period), captured, or revised.
first_seen_at / latency_secondsWhen we captured the number, and how long after the scheduled release.
scheduled_atRelease time in UTC. Dates in calendar filters are New York dates.

Limits and errors

Rate limits are per account, shared by all your keys. Every response carries X-RateLimit-Remaining-Minute and X-RateLimit-Remaining-Day. Going over returns 429 with a Retry-After header. A missing or revoked key returns 401; a plan without access returns 403; bad parameters return 400 with a detail message. On Pro, requests reaching further back than 2 years are trimmed and the response says so in meta.history_limited_from. Newly captured numbers that fail our sanity checks stay hidden (shown as scheduled) until confirmed.

FAQ

What is point-in-time economic data?

Economic statistics are revised after they are first published. Point-in-time (or "first print") data keeps each value as it was known on the day, so a backtest only uses information that was actually available then. Using today’s revised data instead makes strategies look better than they could have been.

Which countries and indicators are covered?

The US, euro area, Germany, France, Italy, Spain, UK, Japan, Canada, Australia, Switzerland, Sweden, Norway and Brazil: inflation, jobs, GDP, retail sales, industrial production, business surveys, housing, trade and more, plus nine central banks’ rate decisions. GET /v1/indicators/ lists everything.

How far back does the history go?

US first prints go back to 2015 (from ALFRED vintages). For other economies, first prints and as-of history back to 2010 come from the OECD’s monthly revision snapshots wherever the OECD series matches the national figure exactly (UK, Canada, Japan and more); each release says where its value came from in history_source. A snapshot is monthly, so occasionally it already contains a quick revision. Where no matching snapshot exists, older values are revised data, flagged with point_in_time=false.

How fast are new releases available?

Key US releases are read from the agencies’ own pages within seconds of publication; others within a minute or two. Every release records first_seen_at and latency_seconds so you can check.

Do you provide consensus forecasts?

For many high and medium importance releases, yes: the economist consensus as reported by a third-party site, with the publisher and a link to the page, frozen 10 minutes before the release. Every release also has an Algovex model forecast and, where Kalshi or Polymarket list it, the market-implied value (market_implied). The surprise score uses the consensus when there is one (surprise_basis). See how each has performed on the accuracy page (/calendar/accuracy).

How do I get an API key?

Create an Algovex account on the Pro or Pro + Data plan, then create keys on this page. Send the key in the Authorization header as a Bearer token.

Looking to run backtests programmatically instead? See the Backtesting API.