Forecast Markets

By category

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

Using Requests:

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

Or using our package:

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

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/markets/forecasts/index?c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getMarketsForecast(category = 'index').then(function(data){
    console.log(data)     
});

Using Requests:

using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/markets/forecasts/index?c=your_api_key"))
    {
        request.Headers.TryAddWithoutValidation("Upgrade-Insecure-Requests", "1");
        var response = await httpClient.SendAsync(request);
        if (response.IsSuccessStatusCode)
        {
            var content = await response.Content.ReadAsStringAsync(); 
            Console.WriteLine(content);
        }
    }
}

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

/markets/forecasts/index

SymbolCountryDateTypeLastUnitURLImportanceForecast1ForecastDate1Forecast2ForecastDate2Forecast3ForecastDate3Forecast4ForecastDate4
AEX:INDNetherlands7/13/2023 5:33:10 PMindex775.760000000000Index Points/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.040000000000Index Points/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.680000000000Index Points/uganda/stock-market999966.8174810000002023-09-30914.2697190000002023-12-31864.6867140000002024-03-31817.7617670000002024-06-30

/markets/forecasts/index?f=json

[{"Symbol":"AEX:IND","Country":"Netherlands","Date":"2023-10-11T13:52:06.22","Type":"index","Last":740.230000000000,"Unit":"Index Points","URL":"/netherlands/stock-market","Importance":190,"Forecast1":709.985900000000,"ForecastDate1":"2023-12-31","Forecast2":693.635150000000,"ForecastDate2":"2024-03-31","Forecast3":677.720420000000,"ForecastDate3":"2024-06-30","Forecast4":662.096370000000,"ForecastDate4":"2024-09-30"},{"Symbol":"ADSMI:IND","Country":"United Arab Emirates","Date":"2023-10-11T00:00:00","Type":"index","Last":9647.760000000000,"Unit":"Index Points","URL":"/united-arab-emirates/stock-market","Importance":330,"Forecast1":9598.375834000000,"ForecastDate1":"2023-12-31","Forecast2":9443.248597000000,"ForecastDate2":"2024-03-31","Forecast3":9290.072646000000,"ForecastDate3":"2024-06-30","Forecast4":9139.823624000000,"ForecastDate4":"2024-09-30"},{"Symbol":"ALSIUG:IND","Country":"Uganda","Date":"2023-10-11T00:00:00","Type":"index","Last":923.890000000000,"Unit":"Index Points","URL":"/uganda/stock-market","Importance":999,"Forecast1":879.888276000000,"ForecastDate1":"2023-12-31","Forecast2":833.637024000000,"ForecastDate2":"2024-03-31","Forecast3":789.800496000000,"ForecastDate3":"2024-06-30","Forecast4":748.192944000000,"ForecastDate4":"2024-09-30"}]

/markets/forecasts/index?f=csv

Symbol,Country,Date,Type,Last,Unit,URL,Importance,Forecast1,ForecastDate1,Forecast2,ForecastDate2,Forecast3,ForecastDate3,Forecast4,ForecastDate4
AEX:IND,Netherlands,10/11/2023 1:53:07 PM,index,740.240000000000,Index Points,/netherlands/stock-market,190,709.985900000000,2023-12-31,693.635150000000,2024-03-31,677.720420000000,2024-06-30,662.096370000000,2024-09-30
ADSMI:IND,United Arab Emirates,10/11/2023 12:00:00 AM,index,9647.760000000000,Index Points,/united-arab-emirates/stock-market,330,9598.375834000000,2023-12-31,9443.248597000000,2024-03-31,9290.072646000000,2024-06-30,9139.823624000000,2024-09-30
ALSIUG:IND,Uganda,10/11/2023 12:00:00 AM,index,923.890000000000,Index Points,/uganda/stock-market,999,879.888276000000,2023-12-31,833.637024000000,2024-03-31,789.800496000000,2024-06-30,748.192944000000,2024-09-30

/markets/forecasts/index?f=xml

<ArrayOfMarkets.MarketsForecastsItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APILib.DB">
<Markets.MarketsForecastsItem>
<Country>Netherlands</Country>
<Date>2023-10-11T13:52:06.22</Date>
<Forecast1>709.985900000000</Forecast1>
<Forecast2>693.635150000000</Forecast2>
<Forecast3>677.720420000000</Forecast3>
<Forecast4>662.096370000000</Forecast4>
<ForecastDate1>2023-12-31</ForecastDate1>
<ForecastDate2>2024-03-31</ForecastDate2>
<ForecastDate3>2024-06-30</ForecastDate3>
<ForecastDate4>2024-09-30</ForecastDate4>
<Importance>190</Importance>
<Last>740.230000000000</Last>
<Symbol>AEX:IND</Symbol>
<Type>index</Type>
<URL>/netherlands/stock-market</URL>
<Unit>Index Points</Unit>
</Markets.MarketsForecastsItem>
<Markets.MarketsForecastsItem>
<Country>United Arab Emirates</Country>
<Date>2023-10-11T00:00:00</Date>
<Forecast1>9598.375834000000</Forecast1>
<Forecast2>9443.248597000000</Forecast2>
<Forecast3>9290.072646000000</Forecast3>
<Forecast4>9139.823624000000</Forecast4>
<ForecastDate1>2023-12-31</ForecastDate1>
<ForecastDate2>2024-03-31</ForecastDate2>
<ForecastDate3>2024-06-30</ForecastDate3>
<ForecastDate4>2024-09-30</ForecastDate4>
<Importance>330</Importance>
<Last>9647.760000000000</Last>
<Symbol>ADSMI:IND</Symbol>
<Type>index</Type>
<URL>/united-arab-emirates/stock-market</URL>
<Unit>Index Points</Unit>
</Markets.MarketsForecastsItem>
<Markets.MarketsForecastsItem>
<Country>Uganda</Country>
<Date>2023-10-11T00:00:00</Date>
<Forecast1>879.888276000000</Forecast1>
<Forecast2>833.637024000000</Forecast2>
<Forecast3>789.800496000000</Forecast3>
<Forecast4>748.192944000000</Forecast4>
<ForecastDate1>2023-12-31</ForecastDate1>
<ForecastDate2>2024-03-31</ForecastDate2>
<ForecastDate3>2024-06-30</ForecastDate3>
<ForecastDate4>2024-09-30</ForecastDate4>
<Importance>999</Importance>
<Last>923.890000000000</Last>
<Symbol>ALSIUG:IND</Symbol>
<Type>index</Type>
<URL>/uganda/stock-market</URL>
<Unit>Index Points</Unit>
</Markets.MarketsForecastsItem>
</ArrayOfMarkets.MarketsForecastsItem>

By symbol

Using Requests:

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

Or using our package:

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

With multi symbols:

te.getMarketsForecasts(symbol=['AAPL:US','DAX:IND',
 'INDU:IND'])

Using Requests:

const axios = require('axios');
(async () => {
    const api_key = 'YOUR_API_KEY'
    const response = await axios.get(`https://api.tradingeconomics.com/markets/forecasts/symbol/AAPL:US,DAX:IND,INDU:IND?c=${api_key}`)
    console.log(response.data)
})()

Or using our package:

data = te.getMarketsForecast(symbol = 'aapl:us').then(function(data){
    console.log(data)     
});

With multi symbols:

data = te.getMarketsForecast(symbol = ['AAPL:US','DAX:IND',
 'INDU:IND']).then(function(data){
    console.log(data)     
});

Using Requests:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/markets/forecasts/symbol/aapl:us?c=your_api_key");

With multi symbols:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/markets/forecasts/symbol/BULGARIAGOVB10Y:GOV,LITHUANIAGOVBON10Y:GOV,GBGB10YR:GOV?c=your_api_key");

/markets/forecasts/symbol/{symbols}

SymbolCountryDateTypeLastUnitURLImportanceForecast1ForecastDate1Forecast2ForecastDate2Forecast3ForecastDate3Forecast4ForecastDate4
AAPL:USUnited States7/13/2023 6:25:17 PMstocks190.770000000000USD/aapl:us500185.4935040000002023-09-30180.4480806912002023-12-31175.5398930000002024-03-31170.7652080000002024-06-30
DAX:INDGermany7/13/2023 6:25:37 PMindex16150.700000000000Index Points/germany/stock-market7015164.9444600000002023-09-3014738.9716400000002023-12-3114323.9212000000002024-03-3113921.3534800000002024-06-30
INDU:INDUnited States7/13/2023 6:25:09 PMindex34422.110000000000Index Points/united-states/stock-market132817.2912640000002023-09-3031923.3169440000002023-12-3131056.3305280000002024-03-3130212.9585280000002024-06-30

/markets/forecasts/symbol/{symbols}?f=json

[{"Symbol":"AAPL:US","Country":"United States","Date":"2023-10-11T13:53:08.263","Type":"stocks","Last":178.860100000000,"Unit":"USD","URL":"/aapl:us","Importance":500,"Forecast1":172.697770000000,"ForecastDate1":"2023-12-31","Forecast2":168.034930210000,"ForecastDate2":"2024-03-31","Forecast3":163.497987000000,"ForecastDate3":"2024-06-30","Forecast4":159.083541000000,"ForecastDate4":"2024-09-30"},{"Symbol":"DAX:IND","Country":"Germany","Date":"2023-10-11T13:54:29.037","Type":"index","Last":15467.300000000000,"Unit":"Index Points","URL":"/germany/stock-market","Importance":70,"Forecast1":14871.870405000000,"ForecastDate1":"2023-12-31","Forecast2":14523.108672000000,"ForecastDate2":"2024-03-31","Forecast3":14180.438847000000,"ForecastDate3":"2024-06-30","Forecast4":13848.429861000000,"ForecastDate4":"2024-09-30"},{"Symbol":"INDU:IND","Country":"United States","Date":"2023-10-11T13:54:44.333","Type":"index","Last":33800.250000000000,"Unit":"Index Points","URL":"/indu:ind","Importance":2,"Forecast1":32505.575340000000,"ForecastDate1":"2023-12-31","Forecast2":31627.924805820000,"ForecastDate2":"2024-03-31","Forecast3":30773.970836000000,"ForecastDate3":"2024-06-30","Forecast4":29943.073623000000,"ForecastDate4":"2024-09-30"}]

/markets/forecasts/symbol/{symbols}?f=csv

Symbol,Country,Date,Type,Last,Unit,URL,Importance,Forecast1,ForecastDate1,Forecast2,ForecastDate2,Forecast3,ForecastDate3,Forecast4,ForecastDate4
AAPL:US,United States,10/11/2023 1:55:08 PM,stocks,177.850000000000,Index Points,/aapl:us,500,172.697770000000,2023-12-31,168.034930210000,2024-03-31,163.497987000000,2024-06-30,159.083541000000,2024-09-30
DAX:IND,Germany,10/11/2023 1:54:29 PM,index,15467.300000000000,Index Points,/germany/stock-market,70,14871.870405000000,2023-12-31,14523.108672000000,2024-03-31,14180.438847000000,2024-06-30,13848.429861000000,2024-09-30
INDU:IND,United States,10/11/2023 1:54:44 PM,index,33800.250000000000,Index Points,/indu:ind,2,32505.575340000000,2023-12-31,31627.924805820000,2024-03-31,30773.970836000000,2024-06-30,29943.073623000000,2024-09-30

/markets/forecasts/symbol/{symbols}?f=xml

<ArrayOfMarkets.MarketsForecastsItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APILib.DB">
<Markets.MarketsForecastsItem>
<Country>United States</Country>
<Date>2023-10-11T13:53:08.263</Date>
<Forecast1>172.697770000000</Forecast1>
<Forecast2>168.034930210000</Forecast2>
<Forecast3>163.497987000000</Forecast3>
<Forecast4>159.083541000000</Forecast4>
<ForecastDate1>2023-12-31</ForecastDate1>
<ForecastDate2>2024-03-31</ForecastDate2>
<ForecastDate3>2024-06-30</ForecastDate3>
<ForecastDate4>2024-09-30</ForecastDate4>
<Importance>500</Importance>
<Last>178.860100000000</Last>
<Symbol>AAPL:US</Symbol>
<Type>stocks</Type>
<URL>/aapl:us</URL>
<Unit>USD</Unit>
</Markets.MarketsForecastsItem>
<Markets.MarketsForecastsItem>
<Country>Germany</Country>
<Date>2023-10-11T13:54:29.037</Date>
<Forecast1>14871.870405000000</Forecast1>
<Forecast2>14523.108672000000</Forecast2>
<Forecast3>14180.438847000000</Forecast3>
<Forecast4>13848.429861000000</Forecast4>
<ForecastDate1>2023-12-31</ForecastDate1>
<ForecastDate2>2024-03-31</ForecastDate2>
<ForecastDate3>2024-06-30</ForecastDate3>
<ForecastDate4>2024-09-30</ForecastDate4>
<Importance>70</Importance>
<Last>15467.300000000000</Last>
<Symbol>DAX:IND</Symbol>
<Type>index</Type>
<URL>/germany/stock-market</URL>
<Unit>Index Points</Unit>
</Markets.MarketsForecastsItem>
<Markets.MarketsForecastsItem>
<Country>United States</Country>
<Date>2023-10-11T13:54:44.333</Date>
<Forecast1>32505.575340000000</Forecast1>
<Forecast2>31627.924805820000</Forecast2>
<Forecast3>30773.970836000000</Forecast3>
<Forecast4>29943.073623000000</Forecast4>
<ForecastDate1>2023-12-31</ForecastDate1>
<ForecastDate2>2024-03-31</ForecastDate2>
<ForecastDate3>2024-06-30</ForecastDate3>
<ForecastDate4>2024-09-30</ForecastDate4>
<Importance>2</Importance>
<Last>33800.250000000000</Last>
<Symbol>INDU:IND</Symbol>
<Type>index</Type>
<URL>/indu:ind</URL>
<Unit>Index Points</Unit>
</Markets.MarketsForecastsItem>
</ArrayOfMarkets.MarketsForecastsItem>

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
UnitstringUnit of the value“Index Points”
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