Skip to content
Docs
Get API key
Markets

Quotes for Index Components

Quotes for individual shares that make up major stock market indices.

Retrieve real-time and historical quotes for the individual shares that make up major stock market indices. These endpoints return prices, daily changes, and key trading metrics for index constituents across global markets.

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/stocks/country/united%20states?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getStocksByCountry(country='united states')

With multi countries:

Python
te.getStocksByCountry(country=['united states', 'nigeria'])
Text
https://api.tradingeconomics.com/markets/stocks/country/{country}?c={your_api_key}&f=json
JSON
[
  {
    "Symbol": "360:AU",
    "Ticker": "360",
    "Name": "Life360",
    "Country": "United States",
    "Date": "2024-07-05T05:59:51.183",
    "State": "OPEN",
    "Last": 15.98,
    "Close": 15.98,
    "CloseDate": "2024-07-05T00:00:00",
    "Group": "",
    "URL": "/360:au",
    "Importance": 1000,
    "DailyChange": 0.12,
    "DailyPercentualChange": 0.7566,
    "WeeklyChange": -0.39,
    "WeeklyPercentualChange": -2.3824,
    "MonthlyChange": 2.18,
    "MonthlyPercentualChange": 15.7971,
    "YearlyChange": 8.43,
    "YearlyPercentualChange": 111.6556,
    "YTDChange": 8.42,
    "YTDPercentualChange": 111.3757,
    "day_high": 16.0,
    "day_low": 15.67,
    "yesterday": 15.86,
    "lastWeek": 16.37,
    "lastMonth": 13.8,
    "lastYear": 7.55,
    "startYear": 7.56,
    "decimals": 2.0,
    "unit": "AUD",
    "frequency": "Live",
    "StartDate": "2019-08-22T00:00:00",
    "LastUpdate": "2024-07-05T15:16:00"
  },
  {
    "Symbol": "1811094D:AU",
    "Ticker": "AVH",
    "Name": "Avita Medical",
    "Country": "United States",
    "Date": "2024-07-05T00:00:00",
    "State": "CLOSED",
    "Last": 2.37,
    "Close": 2.37,
    "CloseDate": "2024-07-05T00:00:00",
    "Group": "",
    "URL": "/1811094d:au",
    "Importance": 1000,
    "DailyChange": 0.0,
    "DailyPercentualChange": 0.0,
    "WeeklyChange": -0.05,
    "WeeklyPercentualChange": -2.0661,
    "MonthlyChange": -0.46,
    "MonthlyPercentualChange": -16.2544,
    "YearlyChange": -2.32,
    "YearlyPercentualChange": -49.467,
    "YTDChange": -1.92,
    "YTDPercentualChange": -44.7552,
    "day_high": 2.39,
    "day_low": 2.36,
    "yesterday": 2.37,
    "lastWeek": 2.42,
    "lastMonth": 2.83,
    "lastYear": 4.69,
    "startYear": 4.29,
    "decimals": 2.0,
    "unit": "AUD",
    "frequency": "Daily",
    "StartDate": "2019-08-22T00:00:00",
    "LastUpdate": "2024-07-05T15:15:00"
  },
  {
    "Symbol": "AAON:US",
    "Ticker": "AAON",
    "Name": "AAON",
    "Country": "United States",
    "Date": "2024-07-05T00:00:00",
    "State": "CLOSED",
    "Last": 85.99,
    "Close": 85.99,
    "CloseDate": "2024-07-05T00:00:00",
    "Group": "America G20 Major",
    "URL": "/aaon:us",
    "Importance": 1000,
    "DailyChange": -0.09,
    "DailyPercentualChange": -0.1046,
    "WeeklyChange": -1.25,
    "WeeklyPercentualChange": -1.4328,
    "MonthlyChange": 13.64,
    "MonthlyPercentualChange": 18.8528,
    "YearlyChange": -6.3,
    "YearlyPercentualChange": -6.8263,
    "YTDChange": 12.12,
    "YTDPercentualChange": 16.4072,
    "day_high": 86.6101,
    "day_low": 85.615,
    "yesterday": 86.08,
    "lastWeek": 87.24,
    "lastMonth": 72.35,
    "lastYear": 92.29,
    "startYear": 73.87,
    "decimals": 2.0,
    "unit": "USD",
    "frequency": "daily",
    "StartDate": "1993-09-02T00:00:00",
    "LastUpdate": "2024-07-05T15:16:00"
  }
]

Markets list by country

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/country/united%20states?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getMarketsByCountry(country='united states')
Text
https://api.tradingeconomics.com/markets/country/{country}?c={your_api_key}&f=json
JSON
[
  {
    "Symbol": "1811094D:AU",
    "Name": "Avita Medical",
    "Country": "United States",
    "Type": "stocks",
    "URL": "/1811094d:au",
    "Frequency": "Daily",
    "Unit": "AUD"
  },
  {
    "Symbol": "360:AU",
    "Name": "Life360",
    "Country": "United States",
    "Type": "stocks",
    "URL": "/360:au",
    "Frequency": "Daily",
    "Unit": "AUD"
  },
  {
    "Symbol": "A:US",
    "Name": "Agilent",
    "Country": "United States",
    "Type": "stocks",
    "URL": "/a:us",
    "Frequency": "Live",
    "Unit": "USD"
  }
]

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/components/psi20:ind?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getMarketsComponents(symbols='psi20:ind')

With multi tickers:

Python
te.getMarketsComponents(symbols=['indu:ind', 'psi20:ind'])
Text
https://api.tradingeconomics.com/markets/components/{symbol}?c={your_api_key}&f=json
JSON
[
  {
    "Symbol": "ALTR:PL",
    "relationship": 0,
    "Ticker": "ALSS",
    "Name": "Altri",
    "Country": "Portugal",
    "Date": "2023-10-10T00:00:00",
    "Type": "stocks",
    "decimals": 2.0,
    "state": "CLOSED",
    "Last": 4.4,
    "Close": 4.4,
    "CloseDate": "2023-10-10T00:00:00",
    "MarketCap": 900938303.0,
    "URL": "/altr:pl",
    "Importance": 1000,
    "DailyChange": 0.07,
    "DailyPercentualChange": 1.6166,
    "WeeklyChange": 0.17,
    "WeeklyPercentualChange": 4.0189,
    "MonthlyChange": -0.16,
    "MonthlyPercentualChange": -3.5088,
    "YearlyChange": -0.69,
    "YearlyPercentualChange": -13.556,
    "YTDChange": -0.605,
    "YTDPercentualChange": -12.0879,
    "day_high": 4.41,
    "day_low": 4.338,
    "yesterday": 4.33,
    "lastWeek": 4.23,
    "lastMonth": 4.56,
    "lastYear": 5.09,
    "startYear": 5.005,
    "ISIN": "PTALT0AE0002",
    "unit": "EUR",
    "frequency": "Daily",
    "LastUpdate": "2023-10-10T17:15:00"
  },
  {
    "Symbol": "BCP:PL",
    "relationship": 0,
    "Ticker": "BCP",
    "Name": "BCP",
    "Country": "Portugal",
    "Date": "2023-10-10T00:00:00",
    "Type": "stocks",
    "decimals": 2.0,
    "state": "CLOSED",
    "Last": 0.2776,
    "Close": 0.2776,
    "CloseDate": "2023-10-10T00:00:00",
    "MarketCap": 4192620813.0,
    "URL": "/bcp:pl",
    "Importance": 1000,
    "DailyChange": 0.008,
    "DailyPercentualChange": 2.9674,
    "WeeklyChange": 0.0168,
    "WeeklyPercentualChange": 6.4417,
    "MonthlyChange": 0.0296,
    "MonthlyPercentualChange": 11.9355,
    "YearlyChange": 0.1503,
    "YearlyPercentualChange": 118.0676,
    "YTDChange": 0.1312,
    "YTDPercentualChange": 89.6175,
    "day_high": 0.279,
    "day_low": 0.2715,
    "yesterday": 0.2696,
    "lastWeek": 0.2608,
    "lastMonth": 0.248,
    "lastYear": 0.1273,
    "startYear": 0.1464,
    "ISIN": "PTBCP0AM0007",
    "unit": "EUR",
    "frequency": "Daily",
    "LastUpdate": "2023-10-10T17:19:00"
  },
  {
    "Symbol": "COR:PL",
    "relationship": 0,
    "Ticker": "CORA",
    "Name": "Corticeira Amorim",
    "Country": "Portugal",
    "Date": "2023-10-10T00:00:00",
    "Type": "stocks",
    "decimals": 2.0,
    "state": "CLOSED",
    "Last": 9.52,
    "Close": 9.52,
    "CloseDate": "2023-10-10T00:00:00",
    "MarketCap": 1280790000.0,
    "URL": "/cor:pl",
    "Importance": 1000,
    "DailyChange": 0.16,
    "DailyPercentualChange": 1.7094,
    "WeeklyChange": -0.12,
    "WeeklyPercentualChange": -1.2448,
    "MonthlyChange": -0.54,
    "MonthlyPercentualChange": -5.3678,
    "YearlyChange": 0.73,
    "YearlyPercentualChange": 8.3049,
    "YTDChange": 0.8,
    "YTDPercentualChange": 9.1743,
    "day_high": 9.63,
    "day_low": 9.35,
    "yesterday": 9.36,
    "lastWeek": 9.64,
    "lastMonth": 10.06,
    "lastYear": 8.79,
    "startYear": 8.72,
    "ISIN": "PTCOR0AE0006",
    "unit": "EUR",
    "frequency": "Daily",
    "LastUpdate": "2023-10-10T17:21:00"
  }
]

Response fields

FieldTypeDescriptionExample
SymbolstringUnique symbol used by Trading Economics“6758:JP”
TickerstringUnique ticker code used by Trading Economics“6758”
NamestringFull name of the company, commodity, or indicator“Sony”
CountrystringCountry associated with the instrument“Japan”
DatestringDate and time of the latest release in UTC (ISO 8601 format)“2023-04-13T00:00:00”
TypestringMarket type“stocks”
DecimalsnumberNumber of decimal places used in reported values2.0
StatestringCurrent market state“CLOSED”
LastnumberMost recent trading value or price11900.00
ClosenumberLast recorded value before the market closed11900.00
CloseDatestringDate and time of the last closing price (ISO 8601 format)“2023-04-13T00:00:00”
MarketCapnumberMarket capitalization14684155308900.0
URLstringTrading Economics link to the instrument’s detail page“/commodity/eggs-ch”
ImportancenumberIndicator importance score ranging from 0 (lowest) to 1000 (highest)1000
DailyChangenumberAbsolute difference between previous close and current price-8.00
DailyPercentualChangenumberPercentage difference between previous close and current price-0.1801
WeeklyChangenumberAbsolute difference between last week’s close and current price56.00
WeeklyPercentualChangenumberPercentage difference between last week’s close and current price1.2788
MonthlyChangenumberAbsolute difference between last month’s close and current price-139.00
MonthlyPercentualChangenumberPercentage difference between last month’s close and current price-3.0389
YearlyChangenumberAbsolute difference between last year’s close and current price-15.00
YearlyPercentualChangenumberPercentage difference between last year’s close and current price-0.3371
YTDChangenumberAbsolute difference between last year’s final close and current price (YTD)525.00
YTDPercentualChangenumberPercentage difference between last year’s final close and current price (YTD)13.4271
day_highnumberHighest trading value of the current day4460.00
day_lownumberLowest trading value of the current day4410.00
YesterdaynumberPrevious day’s closing price4443.00
LastWeeknumberClosing price from the previous week4379.00
LastMonthnumberClosing price from the previous month4574.00
LastYearnumberClosing price from the previous year4450.00
StartYearnumberClosing price at the start of the current year3910.00
ISINstringInternational Securities Identification Number“US0378331005”
UnitstringUnit of measurement for the value“CNY/T”
FrequencystringReporting frequency of the market data“Daily”
LastUpdatestringTimestamp of the most recent data update (ISO 8601 format)