Markets Forecast
Markets Forecast entails professional projections of future market trends, derived from comprehensive analysis of historical data, economic indicators, and relevant factors.
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.
Symbol | Name | Country | Date | Type | Last | Unit | URL | Importance | Forecast1 | ForecastDate1 | Forecast2 | ForecastDate2 | Forecast3 | ForecastDate3 | Forecast4 | ForecastDate4 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AEX:IND | NL25 | Netherlands | 7/13/2023 5:33:10 PM | index | 775.76 | Index Points | /netherlands/stock-market | 190 | 733.9284800 | 2023-09-30 | 714.8644240 | 2023-12-31 | 696.2524800 | 2024-03-31 | 678.1680000 | 2024-06-30 |
ADSMI:IND | ADX General | United Arab Emirates | 7/13/2023 12:00:00 AM | index | 9627.04 | Index Points | /united-arab-emirates/stock-market | 330 | 9423.5919800 | 2023-09-30 | 9246.8756200 | 2023-12-31 | 9073.0405050 | 2024-03-31 | 8902.0866350 | 2024-06-30 |
ALSIUG:IND | USE All Share | Uganda | 7/13/2023 12:00:00 AM | index | 1031.68 | Index Points | /uganda/stock-market | 999 | 966.8174810 | 2023-09-30 | 914.2697190 | 2023-12-31 | 864.6867140 | 2024-03-31 | 817.7617670 | 2024-06-30 |
/markets/forecasts/index?f=json
[{"Symbol":"AEX:IND","Name":"NL25", "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.9859000,"ForecastDate1":"2023-12-31","Forecast2":693.6351500,"ForecastDate2":"2024-03-31","Forecast3":677.7204200,"ForecastDate3":"2024-06-30","Forecast4":662.0963700,"ForecastDate4":"2024-09-30"},{"Symbol":"ADSMI:IND","Name":"ADX General ","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.3758340,"ForecastDate1":"2023-12-31","Forecast2":9443.2485970,"ForecastDate2":"2024-03-31","Forecast3":9290.0726460,"ForecastDate3":"2024-06-30","Forecast4":9139.8236240,"ForecastDate4":"2024-09-30"},{"Symbol":"ALSIUG:IND","Name":"USE All Share","Country":"Uganda","Date":"2023-10-11T00:00:00","Type":"index","Last":923.89,"Unit":"Index Points","URL":"/uganda/stock-market","Importance":999,"Forecast1":879.8882760,"ForecastDate1":"2023-12-31","Forecast2":833.6370240,"ForecastDate2":"2024-03-31","Forecast3":789.8004960,"ForecastDate3":"2024-06-30","Forecast4":748.1929440,"ForecastDate4":"2024-09-30"}]
/markets/forecasts/index?f=csv
Symbol,Name,Country,Date,Type,Last,Unit,URL,Importance,Forecast1,ForecastDate1,Forecast2,ForecastDate2,Forecast3,ForecastDate3,Forecast4,ForecastDate4
AEX:IND,NL25,Netherlands,10/11/2023 1:53:07 PM,index,740.24,Index Points,/netherlands/stock-market,190,709.9859000,2023-12-31,693.6351500,2024-03-31,677.7204200,2024-06-30,662.0963700,2024-09-30
ADSMI:IND,ADX General,United Arab Emirates,10/11/2023 12:00:00 AM,index,9647.76,Index Points,/united-arab-emirates/stock-market,330,9598.3758340,2023-12-31,9443.2485970,2024-03-31,9290.0726460,2024-06-30,9139.8236240,2024-09-30
ALSIUG:IND,USE All Share,Uganda,10/11/2023 12:00:00 AM,index,923.89,Index Points,/uganda/stock-market,999,879.8882760,2023-12-31,833.6370240,2024-03-31,789.8004960,2024-06-30,748.1929440,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.9859000</Forecast1>
<Forecast2>693.6351500</Forecast2>
<Forecast3>677.7204200</Forecast3>
<Forecast4>662.0963700</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.23</Last>
<Name>NL25</Name>
<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.3758340</Forecast1>
<Forecast2>9443.2485970</Forecast2>
<Forecast3>9290.0726460</Forecast3>
<Forecast4>9139.8236240</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.76</Last>
<Name>ADX General</Name>
<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.8882760</Forecast1>
<Forecast2>833.6370240</Forecast2>
<Forecast3>789.8004960</Forecast3>
<Forecast4>748.1929440</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.89</Last>
<Name>USE All Share</Name>
<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}
Symbol | Name | Country | Date | Type | Last | Unit | URL | Importance | Forecast1 | ForecastDate1 | Forecast2 | ForecastDate2 | Forecast3 | ForecastDate3 | Forecast4 | ForecastDate4 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AAPL:US | Apple | United States | 7/13/2023 6:25:17 PM | stocks | 190.77 | USD | /aapl:us | 500 | 185.4935 | 2023-09-30 | 180.4480 | 2023-12-31 | 175.5398 | 2024-03-31 | 170.7652 | 2024-06-30 |
DAX:IND | DE40 | Germany | 7/13/2023 6:25:37 PM | index | 16150.70 | Index Points | /germany/stock-market | 70 | 15164.9444 | 2023-09-30 | 14738.9716 | 2023-12-31 | 14323.9212 | 2024-03-31 | 13921.3534 | 2024-06-30 |
INDU:IND | US30 | United States | 7/13/2023 6:25:09 PM | index | 34422.11 | Index Points | /united-states/stock-market | 1 | 32817.2912 | 2023-09-30 | 31923.3169 | 2023-12-31 | 31056.3305 | 2024-03-31 | 30212.9585 | 2024-06-30 |
/markets/forecasts/symbol/{symbols}?f=json
[{"Symbol":"AAPL:US","Name":"Name","Country":"United States","Date":"2023-10-11T13:53:08.263","Type":"stocks","Last":178.8601,"Unit":"USD","URL":"/aapl:us","Importance":500,"Forecast1":172.6977,"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","Name":"DE40","Country":"Germany","Date":"2023-10-11T13:54:29.037","Type":"index","Last":15467.30,"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","Name":"US30","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.5753,"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"}]
/markets/forecasts/symbol/{symbols}?f=csv
Symbol,Name,Country,Date,Type,Last,Unit,URL,Importance,Forecast1,ForecastDate1,Forecast2,ForecastDate2,Forecast3,ForecastDate3,Forecast4,ForecastDate4
AAPL:US,Apple,United States,10/11/2023 1:55:08 PM,stocks,177.85,Index Points,/aapl:us,500,172.6977,2023-12-31,168.0349,2024-03-31,163.4979,2024-06-30,159.0835,2024-09-30
DAX:IND,DE40,Germany,10/11/2023 1:54:29 PM,index,15467.30,Index Points,/germany/stock-market,70,14871.8704,2023-12-31,14523.1086,2024-03-31,14180.4388,2024-06-30,13848.4298,2024-09-30
INDU:IND,US30,United States,10/11/2023 1:54:44 PM,index,33800.25,Index Points,/indu:ind,2,32505.5753,2023-12-31,31627.9248,2024-03-31,30773.9708,2024-06-30,29943.0736,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.6977</Forecast1>
<Forecast2>168.0349</Forecast2>
<Forecast3>163.4979</Forecast3>
<Forecast4>159.0835</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.8601</Last>
<Name>Apple</Name>
<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.8704</Forecast1>
<Forecast2>14523.1086</Forecast2>
<Forecast3>14180.4388</Forecast3>
<Forecast4>13848.4298</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.30</Last>
<Name>DE40</Name>
<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.5753</Forecast1>
<Forecast2>31627.9248</Forecast2>
<Forecast3>30773.9708</Forecast3>
<Forecast4>29943.0736</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.25</Last>
<Name>US30</Name>
<Symbol>INDU:IND</Symbol>
<Type>index</Type>
<URL>/indu:ind</URL>
<Unit>Index Points</Unit>
</Markets.MarketsForecastsItem>
</ArrayOfMarkets.MarketsForecastsItem>
Response fields
Field | Type | Description | Example |
---|---|---|---|
Symbol | string | Unique symbol used by Trading Economics | “AEX:IND” |
Name | string | Indicator full name | “NL25” |
Country | string | Country name | “Netherlands” |
Date | string | Release time and date in UTC | “2023-04-17T12:02:51.543” |
Type | string | Market category | “index” |
Last | number | Latest released value | 760.33 |
Unit | string | Unit of the value | “Index Points” |
URL | string | Hyperlink at Trading Economics | “/netherlands/stock-market” |
Importance | number | Indicator importance from 0 (lowest) to 1000 (highest) | 190 |
Forecast1 | number | Forecast value for the next quarter | 737.4159 |
ForecastDate1 | number | Forecast1 Date | 2023-06-30 |
Forecast2 | number | Forecast value for the next quarter following Forecast1 | 714.1932 |
ForecastDate2 | number | Forecast2 Date | 2023-09-30 |
Forecast3 | number | Forecast value for the next quarter following Forecast2 | 691.6557 |
ForecastDate3 | number | Forecast3 Date | 2023-12-31 |
Forecast4 | number | Forecast value for the next quarter following Forecast3 | 669.8797 |
ForecastDate4 | number | Forecast4 Date | 2024-03-31 |