Skip to content
Docs
Get API key
Markets

Markets Quotes by Symbol

Use the following API endpoints to obtain market data for companies, countries, peers, and components.

If you already know the symbol for the market you’re looking for, use this endpoint to retrieve its latest quote data. If you don’t know the symbol, there are several ways to find it:

  • Quotes by Category — browse available symbols by market category (e.g., stocks, bonds, commodities).
  • Quotes by Country — look up symbols filtered by country.
  • Search — search for symbols by name or keyword.

Markets

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/markets/symbol/aapl:us,gac:com?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
import tradingeconomics as te
te.login('your_api_key')
te.getMarketsBySymbol(symbols='aapl:us') 

With multi symbols:

Python
te.getMarketsBySymbol(symbols=['aapl:us', 'gac:com'])  

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

Text
https://api.tradingeconomics.com/markets/symbol/{symbol}?c={your_api_key}&f=json
JSON
[
  {
    "Symbol": "AAPL:US",
    "Ticker": "AAPL",
    "Name": "Apple",
    "Country": "United States",
    "Date": "2023-10-10T17:45:39.677",
    "Type": "stocks",
    "decimals": 2.0,
    "state": "OPEN",
    "Last": 178.41,
    "Close": 178.41,
    "CloseDate": "2023-10-10T17:46:00",
    "MarketCap": 28052502.0,
    "URL": "/aapl:us",
    "Importance": 500,
    "DailyChange": -0.58,
    "DailyPercentualChange": -0.32,
    "WeeklyChange": 6.01,
    "WeeklyPercentualChange": 3.4861,
    "MonthlyChange": -0.95,
    "MonthlyPercentualChange": -0.5297,
    "YearlyChange": 39.43,
    "YearlyPercentualChange": 28.371,
    "YTDChange": 48.48,
    "YTDPercentualChange": 37.3124,
    "day_high": 179.72,
    "day_low": 178.1,
    "yesterday": 178.99,
    "lastWeek": 172.4,
    "lastMonth": 179.36,
    "lastYear": 138.98,
    "startYear": 129.93,
    "ISIN": "US0378331005",
    "unit": "USD",
    "frequency": "Live",
    "LastUpdate": "2023-10-10T17:46:00"
  },
  {
    "Symbol": "GAC:COM",
    "Ticker": "GAC",
    "Name": "Gallium",
    "Country": "commodity",
    "Date": "2023-10-09T00:00:00",
    "Type": "commodity",
    "decimals": 2.0,
    "state": "CLOSED",
    "Last": 1955.0,
    "Close": 1955.0,
    "CloseDate": "2023-10-09T00:00:00",
    "MarketCap": null,
    "URL": "/commodity/gallium",
    "Importance": 1000,
    "DailyChange": 50.0,
    "DailyPercentualChange": 2.6247,
    "WeeklyChange": 50.0,
    "WeeklyPercentualChange": 2.6247,
    "MonthlyChange": 230.0,
    "MonthlyPercentualChange": 13.3333,
    "YearlyChange": -550.0,
    "YearlyPercentualChange": -21.9561,
    "YTDChange": 30.0,
    "YTDPercentualChange": 1.5584,
    "day_high": 1980.0,
    "day_low": 1930.0,
    "yesterday": 1905.0,
    "lastWeek": 1905.0,
    "lastMonth": 1725.0,
    "lastYear": 2505.0,
    "startYear": 1925.0,
    "ISIN": "",
    "unit": "CNY/Kg",
    "frequency": "daily",
    "LastUpdate": "2023-10-10T17:02:00"
  }
]

Peers

Using Requests:

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

Or using our package:

Python
te.getMarketsPeers(symbols='aapl:us')
Text
https://api.tradingeconomics.com/markets/peers/{symbol}?c={your_api_key}&f=json
JSON
[
  {
    "Symbol": "2368:TT",
    "relationship": 1,
    "Ticker": "2368",
    "Name": "Gold Circuit Elect",
    "Country": "Taiwan",
    "Date": "2023-10-06T00:00:00",
    "Type": "stocks",
    "decimals": 2.0,
    "state": "CLOSED",
    "Last": 221.0,
    "Close": 221.0,
    "CloseDate": "2023-10-06T00:00:00",
    "MarketCap": 107558048000.0,
    "URL": "/2368:tt",
    "Importance": 1000,
    "DailyChange": -1.5,
    "DailyPercentualChange": -0.6742,
    "WeeklyChange": 5.5,
    "WeeklyPercentualChange": 2.5522,
    "MonthlyChange": 11.5,
    "MonthlyPercentualChange": 5.4893,
    "YearlyChange": 129.5,
    "YearlyPercentualChange": 141.5301,
    "YTDChange": 134.2,
    "YTDPercentualChange": 154.6083,
    "day_high": 227.0,
    "day_low": 219.0,
    "yesterday": 222.5,
    "lastWeek": 215.5,
    "lastMonth": 209.5,
    "lastYear": 91.5,
    "startYear": 86.8,
    "ISIN": "TW0002368008",
    "unit": "TWD",
    "frequency": "Daily",
    "LastUpdate": "2023-10-10T16:34:00"
  },
  {
    "Symbol": "2415:TT",
    "relationship": 1,
    "Ticker": "2415",
    "Name": "Cx Technology",
    "Country": "Taiwan",
    "Date": "2023-10-06T00:00:00",
    "Type": "stocks",
    "decimals": 2.0,
    "state": "CLOSED",
    "Last": 30.05,
    "Close": 30.05,
    "CloseDate": "2023-10-06T00:00:00",
    "MarketCap": 27045.0,
    "URL": "/2415:tt",
    "Importance": 1000,
    "DailyChange": -0.75,
    "DailyPercentualChange": -2.4351,
    "WeeklyChange": 1.3,
    "WeeklyPercentualChange": 4.5217,
    "MonthlyChange": -1.2,
    "MonthlyPercentualChange": -3.84,
    "YearlyChange": 6.1,
    "YearlyPercentualChange": 25.4697,
    "YTDChange": 9.65,
    "YTDPercentualChange": 47.3039,
    "day_high": 31.4,
    "day_low": 30.0,
    "yesterday": 30.8,
    "lastWeek": 28.75,
    "lastMonth": 31.25,
    "lastYear": 23.95,
    "startYear": 20.4,
    "ISIN": "TW0002415007",
    "unit": "TWD",
    "frequency": "Daily",
    "LastUpdate": "2023-10-10T16:35:00"
  },
  {
    "Symbol": "3149:TT",
    "relationship": 1,
    "Ticker": "3149",
    "Name": "G-tech Optoelectron",
    "Country": "Taiwan",
    "Date": "2023-10-06T00:00:00",
    "Type": "stocks",
    "decimals": 2.0,
    "state": "CLOSED",
    "Last": 13.9,
    "Close": 13.9,
    "CloseDate": "2023-10-06T00:00:00",
    "MarketCap": 3118181440.0,
    "URL": "/3149:tt",
    "Importance": 1000,
    "DailyChange": 0.1,
    "DailyPercentualChange": 0.7246,
    "WeeklyChange": 0.25,
    "WeeklyPercentualChange": 1.8315,
    "MonthlyChange": -1.7,
    "MonthlyPercentualChange": -10.8974,
    "YearlyChange": -7.45,
    "YearlyPercentualChange": -34.8946,
    "YTDChange": -4.6,
    "YTDPercentualChange": -24.8649,
    "day_high": 14.35,
    "day_low": 13.8,
    "yesterday": 13.8,
    "lastWeek": 13.65,
    "lastMonth": 15.6,
    "lastYear": 21.35,
    "startYear": 18.5,
    "ISIN": "TW0003149001",
    "unit": "TWD",
    "frequency": "Daily",
    "LastUpdate": "2023-10-10T13:41:00"
  }
]

Components

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)“2023-04-13T18:24:00”

Relationship field available only in ‘Peers’ and ‘Components’

FieldTypeDescriptionExample
RelationshipnumberIndicates the relationship type:
0 = component, 1 = peer
0