Skip to content

Forecasts API

Statistical forecasts of news sentiment and of the size of price moves, and macro nowcasts.

Every call needs an X-API-Key header with a key that holds the forecasts scope (professional, enterprise and bespoke plans; keys are managed in the dashboard). The base URL is https://api.infotrie.com. Answers are JSON; errors carry a message, and a refused call is 400 (a bad parameter), 401 (no key), 403 (no scope), 404 (unknown series), 422 (too little history) or 429 (rate limit, with Retry-After).

What these forecasts are

Forecasts are statistical estimates of a news series or of the size of moves. None forecasts a price or its direction, and none is investment advice. Every model is served only when it beats a simple baseline on a rolling-origin backtest, and every stored forecast is later scored against what happened.

Sentiment and buzz forecasts

A quantile forecast (q05, q25, q50, q75, q95) of a company's or a market's daily news sentiment or buzz, 1 to 10 days ahead. Several models are backtested on rolling origins; one is served only when it beats repeating the last value, and the response says which, with both scores. With threshold=, the probability of ending above it, per day.

  • GET /api/forecasts/companies/{itrieId} — a company (c_…)
  • GET /api/forecasts/markets/{itrieId} — an index, forex pair or commodity (in_, fx_, cm_)
  • GET /api/forecasts/indexes/{itrieId}/sectors/{sector} — a sector of an index (sentiment only; slug from the sector list)
  • GET /api/forecasts/indexes/{itrieId}/sectors — the sectors of an index, with their slugs
curl -H "X-API-Key: $INFOTRIE_API_KEY" "https://api.infotrie.com/api/forecasts/companies/c_84?target=sentiment&horizon=5&threshold=6.5"

Volatility and shock scenarios

The expected size of daily price moves, 1 to 21 trading days ahead, from GARCH(1,1), its asymmetric GJR variant or the historical variance, whichever wins the backtest. A scenario replays a hypothetical move of the next trading day through the same fit. The size of moves, never their direction.

  • GET /api/forecasts/companies/{itrieId}/volatility — a company
  • GET /api/forecasts/markets/{itrieId}/volatility — a market
  • GET /api/forecasts/companies/{itrieId}/volatility/scenario — after a shock, a company
  • GET /api/forecasts/markets/{itrieId}/volatility/scenario — after a shock, a market
curl -H "X-API-Key: $INFOTRIE_API_KEY" "https://api.infotrie.com/api/forecasts/markets/in_9/volatility/scenario?shock=-0.03&horizon=10"

Sentiment correlations

Pearson's r between the daily news sentiment of 2 to 20 markets, on day-to-day changes by default, with a 95 % interval; a pair needs 30 shared days.

  • GET /api/forecasts/markets/correlations — between markets
  • GET /api/forecasts/indexes/{itrieId}/sector-correlations — between the sectors of an index
curl -H "X-API-Key: $INFOTRIE_API_KEY" "https://api.infotrie.com/api/forecasts/markets/correlations?ids=in_9,fx_151&days=180"

Track records

How the stored nightly forecasts did once their outcome was known: MAE against the naive baseline, pinball loss, CRPS, interval coverage and the PIT histogram, per series or pooled by family. version restricts a record to one engine version.

  • GET /api/forecasts/companies/{itrieId}/track-record — a company's forecasts
  • GET /api/forecasts/companies/{itrieId}/volatility/track-record — its volatility
  • GET /api/forecasts/markets/{itrieId}/track-record — a market's forecasts
  • GET /api/forecasts/markets/{itrieId}/volatility/track-record — its volatility
  • GET /api/forecasts/track-record — every family, pooled
curl -H "X-API-Key: $INFOTRIE_API_KEY" "https://api.infotrie.com/api/forecasts/companies/c_84/track-record?days=90"

Macro nowcasts

Point-in-time nowcasts of GDP, inflation and employment for the configured countries, from the economic calendar, with their backtest against an AR(1), the stored nightly runs, what-if scenarios, the day's revisions, the per-country surprise index and the releases to come.

  • GET /api/forecasts/nowcasts — the configured nowcasts
  • GET /api/forecasts/nowcasts/{key} — one nowcast
  • GET /api/forecasts/nowcasts/{key}/track-record — how it did
  • GET /api/forecasts/nowcasts/{key}/runs — its stored runs, paged
  • GET /api/forecasts/nowcasts/{key}/scenario — with hypothetical releases
  • GET /api/forecasts/nowcasts/{key}/news — what moved it since a day
  • GET /api/forecasts/nowcast-surprises — the surprise index by country
  • GET /api/forecasts/nowcast-releases — the releases to come
curl -H "X-API-Key: $INFOTRIE_API_KEY" "https://api.infotrie.com/api/forecasts/nowcasts/us-gdp"

Every parameter and response is in the API reference (tag Forecasts), generated from the OpenAPI contract.