Skip to content
Docs
Get API key
Forecast

Forecasts for Markets

Use the following API endpoints to obtain market forecast data.

Trading Economics forecasts are built using a proprietary global macro model that takes into account our analysts’ expectations, correlations between countries, and a set of logical relationships between different indicators.

By category

category = (index, currency, crypto, commodity, bond)

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/forecasts/index?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
import tradingeconomics as te
te.login('your_api_key')
te.getMarketsForecasts(category='index')

The response data format can be configured by appending the &f= parameter to the URL request.

Text
https://api.tradingeconomics.com/markets/forecasts/index?c={your_api_key}&f=json
JSON
[
  {
    "Symbol": "AEX:IND",
    "Country": "Netherlands",
    "Date": "2023-10-11T13:52:06.22",
    "Type": "index",
    "Last": 740.23,
    "Unit": "Index Points",
    "URL": "/netherlands/stock-market",
    "Importance": 190,
    "Forecast1": 709.9859,
    "ForecastDate1": "2023-12-31",
    "Forecast2": 693.63515,
    "ForecastDate2": "2024-03-31",
    "Forecast3": 677.72042,
    "ForecastDate3": "2024-06-30",
    "Forecast4": 662.09637,
    "ForecastDate4": "2024-09-30"
  },
  {
    "Symbol": "ADSMI:IND",
    "Country": "United Arab Emirates",
    "Date": "2023-10-11T00:00:00",
    "Type": "index",
    "Last": 9647.76,
    "Unit": "Index Points",
    "URL": "/united-arab-emirates/stock-market",
    "Importance": 330,
    "Forecast1": 9598.3758,
    "ForecastDate1": "2023-12-31",
    "Forecast2": 9443.2485,
    "ForecastDate2": "2024-03-31",
    "Forecast3": 9290.0726,
    "ForecastDate3": "2024-06-30",
    "Forecast4": 9139.8236,
    "ForecastDate4": "2024-09-30"
  },
  {
    "Symbol": "ALSIUG:IND",
    "Country": "Uganda",
    "Date": "2023-10-11T00:00:00",
    "Type": "index",
    "Last": 923.89,
    "Unit": "Index Points",
    "URL": "/uganda/stock-market",
    "Importance": 999,
    "Forecast1": 879.8882,
    "ForecastDate1": "2023-12-31",
    "Forecast2": 833.637,
    "ForecastDate2": "2024-03-31",
    "Forecast3": 789.8004,
    "ForecastDate3": "2024-06-30",
    "Forecast4": 748.1929,
    "ForecastDate4": "2024-09-30"
  }
]

By symbol

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/forecasts/symbol/AAPL:US,DAX:IND,INDU:IND?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getMarketsForecasts(symbol='aapl:us')

With multi symbols:

Python
te.getMarketsForecasts(symbol=['AAPL:US','DAX:IND',
 'INDU:IND'])
Text
https://api.tradingeconomics.com/markets/forecasts/symbol/{symbols}?c={your_api_key}&f=json
JSON
[
  {
    "Symbol": "AAPL:US",
    "Country": "United States",
    "Date": "2023-10-11T13:53:08.263",
    "Type": "stocks",
    "Last": 178.8601,
    "Unit": "USD",
    "URL": "/aapl:us",
    "Importance": 500,
    "Forecast1": 172.69777,
    "ForecastDate1": "2023-12-31",
    "Forecast2": 168.0349,
    "ForecastDate2": "2024-03-31",
    "Forecast3": 163.4979,
    "ForecastDate3": "2024-06-30",
    "Forecast4": 159.0835,
    "ForecastDate4": "2024-09-30"
  },
  {
    "Symbol": "DAX:IND",
    "Country": "Germany",
    "Date": "2023-10-11T13:54:29.037",
    "Type": "index",
    "Last": 15467.3,
    "Unit": "Index Points",
    "URL": "/germany/stock-market",
    "Importance": 70,
    "Forecast1": 14871.8704,
    "ForecastDate1": "2023-12-31",
    "Forecast2": 14523.1086,
    "ForecastDate2": "2024-03-31",
    "Forecast3": 14180.4388,
    "ForecastDate3": "2024-06-30",
    "Forecast4": 13848.4298,
    "ForecastDate4": "2024-09-30"
  },
  {
    "Symbol": "INDU:IND",
    "Country": "United States",
    "Date": "2023-10-11T13:54:44.333",
    "Type": "index",
    "Last": 33800.25,
    "Unit": "Index Points",
    "URL": "/indu:ind",
    "Importance": 2,
    "Forecast1": 32505.57534,
    "ForecastDate1": "2023-12-31",
    "Forecast2": 31627.9248,
    "ForecastDate2": "2024-03-31",
    "Forecast3": 30773.9708,
    "ForecastDate3": "2024-06-30",
    "Forecast4": 29943.0736,
    "ForecastDate4": "2024-09-30"
  }
]

Response fields

FieldTypeDescriptionExample
SymbolstringUnique symbol used by Trading Economics .“AEX:IND”
CountrystringName of the country associated with the indicator.“Netherlands”
DatestringDate of the reported value, in UTC format.“2023-04-17T12:02:51.543”
TypestringName of the market category“index”
LastnumberLatest released forecast760.3300
UnitstringUnit of measurement for the value.“Index Points”
URLstringHyperlink to the indicator page on Trading Economics.“/netherlands/stock-market”
ImportancenumberIndicator importance from 0 (lowest) to 1000 (highest).190
Forecast1numberForecast for the next quarter.737.4159
ForecastDate1numberRelease date associated with Forecast1.2023-06-30
Forecast2numberForecast for the next quarter following Forecast1714.1932
ForecastDate2numberRelease date associated with Forecast2.2023-09-30
Forecast3numberForecast for the next quarter following Forecast2691.65576
ForecastDate3numberRelease date associated with Forecast3.2023-12-31
Forecast4numberForecast for the next quarter following Forecast3669.87972
ForecastDate4numberRelease date associated with Forecast4.2024-03-31