Historical
Get Comtrade Historical data
By symbol
Get historical data for one or multiple symbols
import tradingeconomics as te
te.login('your_api_key')
te.getCmtHistorical(symbol = 'PRTESP24031')
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getComtrade(symbol = 'PRTESP24031').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/comtrade/historical/PRTESP24031?c=guest:guest");
/comtrade/historical/{symbols}
te.getCmtHistorical(symbol = 'PRTESP24031, NORZWEXX991')
data = te.getComtrade(symbol = 'PRTESP24031, NORZWEXX991').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/comtrade/historical/PRTESP24031,NORZWEXX991?c=guest:guest");
Response fields
Field | Type | Description | Example |
---|---|---|---|
Symbol | string | Unique symbol used by Trading Economics | “NORZWEXX991” |
Date | string | Year of the updated series | “1995-12-31T00:00:00” |
Value | string | Trade value | 3161.0 |