Markets

Here you can get market forecast data from the API.

By category

Get market forecasts for major indexes by category

Index

/markets/forecasts/index

import tradingeconomics as te
te.login('your_api_key')

te.getMarketsForecasts(category='index')
const te = require('tradingeconomics');
te.login('your_api_key');

data = te.getMarketsForecast(category = 'index').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/forecasts/index?c=guest:guest");
SymbolCountryDateTypeLastURLImportanceForecast1ForecastDate1Forecast2ForecastDate2Forecast3ForecastDate3Forecast4ForecastDate4
AEX:INDNetherlands7/13/2023 5:33:10 PMindex775.760000000000/netherlands/stock-market190733.9284800000002023-09-30714.8644240000002023-12-31696.2524800000002024-03-31678.1680000000002024-06-30
ADSMI:INDUnited Arab Emirates7/13/2023 12:00:00 AMindex9627.040000000000/united-arab-emirates/stock-market3309423.5919800000002023-09-309246.8756200000002023-12-319073.0405050000002024-03-318902.0866350000002024-06-30
ALSIUG:INDUganda7/13/2023 12:00:00 AMindex1031.680000000000/uganda/stock-market999966.8174810000002023-09-30914.2697190000002023-12-31864.6867140000002024-03-31817.7617670000002024-06-30

Currency

/markets/forecasts/currency

te.getMarketsForecasts(category='currency')
data = te.getMarketsForecast(category = 'currency').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/forecasts/currency?c=guest:guest");
SymbolCountryDateTypeLastURLImportanceForecast1ForecastDate1Forecast2ForecastDate2Forecast3ForecastDate3Forecast4ForecastDate4
AUDUSD:CURAustralia7/13/2023 6:10:16 PMcurrency0.689020000000/australia/currency30.6547940000002023-09-300.6406730000002023-12-310.6268200000002024-03-310.6133010000002024-06-30
BTCUSD:CURother7/13/2023 6:10:14 PMcurrency31290.000000000000/btcusd:cur20128038.1430898594002023-09-3025960.7421656970002023-12-3124037.8259228722002024-03-3122254.2188435373002024-06-30
DAIUSD:CURother7/13/2023 6:08:30 PMcurrency0.999890000000/daiusd:cur2150.9923200000002023-09-300.9847200000002023-12-310.9771200000002024-03-310.9696190000002024-06-30

Crypto

/markets/forecasts/crypto

te.getMarketsForecasts(category='crypto')
data = te.getMarketsForecast(category = 'crypto').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/forecasts/crypto?c=guest:guest");
SymbolCountryDateTypeLastURLImportanceForecast1ForecastDate1Forecast2ForecastDate2Forecast3ForecastDate3Forecast4ForecastDate4
BTCUSD:CURother7/13/2023 6:13:16 PMcurrency31416.000000000000/btcusd:cur20128038.1430898594002023-09-3025960.7421656970002023-12-3124037.8259228722002024-03-3122254.2188435373002024-06-30
BCHUSD:CURother7/13/2023 6:12:41 PMcurrency287.270000000000/bchusd:cur220237.8892712985002023-09-30210.6182517649002023-12-31186.4907864600002024-03-31165.1307279701002024-06-30
XMRUSD:CURother7/13/2023 6:12:12 PMcurrency167.637690000000/xmrusd:cur222154.1141298662002023-09-30141.7307056782002023-12-31130.3527023458002024-03-31119.8963352306002024-06-30

Commodity

/markets/forecasts/commodity

te.getMarketsForecasts(category='commodity')
data = te.getMarketsForecast(category = 'commodity').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/forecasts/commodity?c=guest:guest");
SymbolCountryDateTypeLastURLImportanceForecast1ForecastDate1Forecast2ForecastDate2Forecast3ForecastDate3Forecast4ForecastDate4
BDIY:INDcommodity7/13/2023 12:00:00 AMcommodity1103.000000000000/commodity/baltic50953.1014000000002023-09-30900.3307000000002023-12-31850.3852000000002024-03-31803.2649000000002024-06-30
BIT:COMcommodity7/13/2023 12:00:00 AMcommodity3880.000000000000/commodity/bitumen1003763.6000000000002023-09-303650.6920000000002023-12-313541.2760000000002024-03-313434.9640000000002024-06-30
BEEF:COMcommodity7/12/2023 12:00:00 AMcommodity17.580000000000/commodity/beef99917.3418100000002023-09-3017.2336200000002023-12-3117.1271750000002024-03-3117.0207300000002024-06-30

Bond

/markets/forecasts/bond

te.getMarketsForecasts(category='bond')
data = te.getMarketsForecast(category = 'bond').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/forecasts/bond?c=guest:guest");
SymbolCountryDateTypeLastURLImportanceForecast1ForecastDate1Forecast2ForecastDate2Forecast3ForecastDate3Forecast4ForecastDate4
BGRGOVB10Y:GOVBulgaria7/13/2023 12:00:00 AMbond4.500000000000/bulgaria/government-bond-yield9994.7448000000002023-09-305.0031000000002023-12-315.2749000000002024-03-315.5620000000002024-06-30
CHLGOVBON10Y:GOVChile7/12/2023 12:00:00 AMbond5.300000000000/chile/government-bond-yield9995.4312880000002023-09-305.5036480000002023-12-315.5765440000002024-03-315.6510480000002024-06-30
COGR10Y:GOVColombia7/13/2023 6:19:11 PMbond9.836000000000/colombia/government-bond-yield99910.4315570000002023-09-3010.6582190000002023-12-3110.8889650000002024-03-3111.1258370000002024-06-30

By symbol

Get market forecasts for major indexes by a specific symbol

/markets/forecasts/symbol/{symbols}

te.getMarketsForecasts(symbol=['AAPL:US','DAX:IND',
 'INDU:IND'])
te.getMarketsForecasts(symbol='aapl:us')
data = te.getMarketsForecast(symbol = ['AAPL:US','DAX:IND',
 'INDU:IND']).then(function(data){
    console.log(data)     
});
data = te.getMarketsForecast(symbol = 'aapl:us').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/forecasts/symbol/BULGARIAGOVB10Y:GOV,LITHUANIAGOVBON10Y:GOV,GBGB10YR:GOV?c=guest:guest");
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/forecasts/symbol/aapl:us?c=guest:guest");
SymbolCountryDateTypeLastURLImportanceForecast1ForecastDate1Forecast2ForecastDate2Forecast3ForecastDate3Forecast4ForecastDate4
AAPL:USUnited States7/13/2023 6:25:17 PMstocks190.770000000000/aapl:us500185.4935040000002023-09-30180.4480806912002023-12-31175.5398930000002024-03-31170.7652080000002024-06-30
DAX:INDGermany7/13/2023 6:25:37 PMindex16150.700000000000/germany/stock-market7015164.9444600000002023-09-3014738.9716400000002023-12-3114323.9212000000002024-03-3113921.3534800000002024-06-30
INDU:INDUnited States7/13/2023 6:25:09 PMindex34422.110000000000/united-states/stock-market132817.2912640000002023-09-3031923.3169440000002023-12-3131056.3305280000002024-03-3130212.9585280000002024-06-30

Response fields

FieldTypeDescriptionExample
SymbolstringUnique symbol used by Trading Economics“AEX:IND”
CountrystringCountry name“Netherlands”
DatestringRelease time and date in UTC“2023-04-17T12:02:51.543”
TypestringMarket category“index”
LastnumberLatest released value760.330000000000
URLstringHyperlink at Trading Economics“/netherlands/stock-market”
ImportancenumberIndicator importance from 0 (lowest) to 1000 (highest)190
Forecast1numberForecast value for the next quarter737.415900000000
ForecastDate1numberForecast1 Date2023-06-30
Forecast2numberForecast value for the next quarter following Forecast1714.193200000000
ForecastDate2numberForecast2 Date2023-09-30
Forecast3numberForecast value for the next quarter following Forecast2691.655760000000
ForecastDate3numberForecast3 Date2023-12-31
Forecast4numberForecast value for the next quarter following Forecast3669.879720000000
ForecastDate4numberForecast4 Date2024-03-31