Intraday
The API also provides minute-to-minute intraday data for several markets.
By symbol
Get intraday data by a specific symbol or symbols (max of 5)
import tradingeconomics as te
te.login('your_api_key')
te.getMarketsIntraday(symbols='aapl:us')
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getMarketsIntraday(symbol = 'aapl:us').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/intraday/aapl:us?c=guest:guest");
Symbol | Date | Open | High | Low | Close |
---|---|---|---|---|---|
AAPL:US | 7/12/2023 5:45:00 PM | 189.96000 | 189.97000 | 189.96000 | 189.97000 |
AAPL:US | 7/12/2023 5:44:00 PM | 189.95000 | 189.98000 | 189.95000 | 189.97000 |
AAPL:US | 7/12/2023 5:43:00 PM | 189.96000 | 189.98000 | 189.96000 | 189.97000 |
te.getMarketsIntraday(symbols=['aapl:us','stx:us'])
data = te.getMarketsIntraday(symbol = ['aapl:us','stx:us']).then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/intraday/aapl:us,stx:us?c=guest:guest");
Symbol | Date | Open | High | Low | Close |
---|---|---|---|---|---|
AAPL:US | 7/12/2023 5:47:00 PM | 189.82000 | 189.82000 | 189.79000 | 189.79000 |
STX:US | 7/12/2023 5:47:00 PM | 60.89000 | 60.89000 | 60.86500 | 60.87000 |
AAPL:US | 7/12/2023 5:46:00 PM | 189.95000 | 189.97000 | 189.82000 | 189.83000 |
By symbol and date
Get intraday data by a specific symbol or symbols and date
Note: returns only data from the last 30 days
/markets/intraday/{symbol}?d1=yyyy-mm-dd hh:mm
te.getMarketsIntraday(symbols='aapl:us', initDate='2017-08-10 15:30')
data = te.getMarketsIntraday(symbol = 'aapl:us', start_date = '2017-08-10 15:30').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/intraday/aapl:us?c=guest:guest&d1=2017-08-10%2015:30");
Symbol | Date | Open | High | Low | Close |
---|---|---|---|---|---|
AAPL:US | 7/12/2023 5:48:00 PM | 189.78000 | 189.82000 | 189.76000 | 189.80000 |
AAPL:US | 7/12/2023 5:47:00 PM | 189.82000 | 189.82000 | 189.75000 | 189.77000 |
AAPL:US | 7/12/2023 5:46:00 PM | 189.95000 | 189.97000 | 189.82000 | 189.83000 |
/markets/intraday/{symbol}?d1=yyyy-mm-dd&d2=yyyy-mm-dd
te.getMarketsIntraday(symbols='aapl:us', initDate='2017-08-01',
endDate='2017-08-08')
data = te.getMarketsIntraday(symbol = 'aapl:us', start_date = '2017-08-01',
end_date = '2017-08-08').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/intraday/aapl:us?c=guest:guest&d1=2017-08-01&d2=2017-08-08");
Symbol | Date | Open | High | Low | Close |
---|---|---|---|---|---|
AAPL:US | 7/12/2023 5:50:00 PM | 189.86000 | 189.86000 | 189.86000 | 189.86000 |
AAPL:US | 7/12/2023 5:49:00 PM | 189.80000 | 189.89000 | 189.80000 | 189.87000 |
AAPL:US | 7/12/2023 5:48:00 PM | 189.78000 | 189.82000 | 189.76000 | 189.81000 |
By interval
An interval can be added to the date. Allowed intervals: 1m, 5m, 10m, 15m, 30m, 1h, 2h, 4h
/markets/intraday/{symbol}?agr={interval}&d1=yyyy-mm-dd&d2=yyyy-mm-dd
te.getMarketsIntradayByInterval(symbol='aapl:us', initDate='2020-01-01',
endDate='2020-12-01', interval='5d')
data = te.getMarketsIntraday(symbol = 'aapl:us', start_date = '2020-01-01',
end_date = '2020-12-01', agr = '5d').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/markets/intraday/aapl:us?agr=5d&d1=2020-01-01%2000:00&d2=2020-12-01%2015:30&client=guest:guest");
Symbol | Date | Open | High | Low | Close |
---|---|---|---|---|---|
AAPL:US | 7/12/2023 5:50:00 PM | 189.86000 | 189.86000 | 189.86000 | 189.86000 |
AAPL:US | 7/12/2023 5:49:00 PM | 189.80000 | 189.89000 | 189.80000 | 189.87000 |
AAPL:US | 7/12/2023 5:48:00 PM | 189.78000 | 189.82000 | 189.76000 | 189.81000 |
Response fields
Field | Type | Description | Example |
---|---|---|---|
Symbol | string | Unique symbol used by Trading Economics | “AAPL:US” |
Date | string | Release time and date in UTC | “2023-04-13T19:58:00” |
Open | number | Open value | 165.42000 |
High | number | High value | 165.55000 |
Low | number | Low value | 165.39999 |
Close | number | Close value | 165.53999 |