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 companyGET /api/forecasts/markets/{itrieId}/volatility— a marketGET /api/forecasts/companies/{itrieId}/volatility/scenario— after a shock, a companyGET /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 marketsGET /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 forecastsGET /api/forecasts/companies/{itrieId}/volatility/track-record— its volatilityGET /api/forecasts/markets/{itrieId}/track-record— a market's forecastsGET /api/forecasts/markets/{itrieId}/volatility/track-record— its volatilityGET /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 nowcastsGET /api/forecasts/nowcasts/{key}— one nowcastGET /api/forecasts/nowcasts/{key}/track-record— how it didGET /api/forecasts/nowcasts/{key}/runs— its stored runs, pagedGET /api/forecasts/nowcasts/{key}/scenario— with hypothetical releasesGET /api/forecasts/nowcasts/{key}/news— what moved it since a dayGET /api/forecasts/nowcast-surprises— the surprise index by countryGET /api/forecasts/nowcast-releases— the releases to come
Every parameter and response is in the API reference (tag Forecasts), generated from the OpenAPI contract.