Markets Quotes by Country

The Country Snapshot endpoints offer stocks and markets data by country, capturing key details like country, names, metrics, categories, and dates for a quick overview.

Stocks by country

Using Requests:

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:

te.getStocksByCountry(country='united states')

With multi countries:

te.getStocksByCountry(country=['united states', 'nigeria'])

Using Requests:

const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/markets/stocks/country/united%20states?c=${your_api_key}`)
    console.log(response.data)
})()

Or using our package:

data = te.getMarketSnap(country = 'united states').then(function(data){
  console.log(data)     
});

With multi countries:

data = te.getMarketSnap(country = ['united states', 'nigeria']).then(function(data){
  console.log(data)     
});

Using Requests:

new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/markets/stocks/country/united%20states?client=your_api_key");
https://api.tradingeconomics.com/markets/stocks/country/{country}?c={your_api_key}&f=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"
  }
]
https://api.tradingeconomics.com/markets/stocks/country/{country}?c={your_api_key}&f=csv
360:AU,360,Life360,United States,7/5/2024 5:59:51 AM,OPEN,15.98000,15.98000,7/5/2024 12:00:00 AM,/360:au,1000,0.12000,0.7566,-0.39000,-2.3824,2.18000,15.7971,8.43000,111.6556,8.42000,111.3757,16.00000,15.67000,15.86000,16.37000,13.80000,7.55000,7.56000,2,AUD,Live,8/22/2019 12:00:00 AM,7/5/2024 3:16:00 PM
1811094D:AU,AVH,Avita Medical,United States,7/5/2024 12:00:00 AM,CLOSED,2.37000,2.37000,7/5/2024 12:00:00 AM,/1811094d:au,1000,0.00000,0.0000,-0.05000,-2.0661,-0.46000,-16.2544,-2.32000,-49.4670,-1.92000,-44.7552,2.39000,2.36000,2.37000,2.42000,2.83000,4.69000,4.29000,2,AUD,Daily,8/22/2019 12:00:00 AM,7/5/2024 3:15:00 PM
AAON:US,AAON,AAON,United States,7/5/2024 12:00:00 AM,CLOSED,85.99000,85.99000,7/5/2024 12:00:00 AM,America G20 Major,/aaon:us,1000,-0.09000,-0.1046,-1.25000,-1.4328,13.64000,18.8528,-6.30000,-6.8263,12.12000,16.4072,86.61010,85.61500,86.08000,87.24000,72.35000,92.29000,73.87000,2,USD,daily,9/2/1993 12:00:00 AM,7/5/2024 3:16:00 PM
https://api.tradingeconomics.com/markets/stocks/country/{country}?c={your_api_key}&f=xml
<ArrayOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<anyType xmlns:d2p1="http://schemas.datacontract.org/2004/07/APILib.DB" i:type="d2p1:Markets.MarketSnapGroup">
<d2p1:Close>15.98000</d2p1:Close>
<d2p1:CloseDate>2024-07-05T00:00:00</d2p1:CloseDate>
<d2p1:Country>United States</d2p1:Country>
<d2p1:DailyChange>0.12000</d2p1:DailyChange>
<d2p1:DailyPercentualChange>0.7566</d2p1:DailyPercentualChange>
<d2p1:Date>2024-07-05T05:59:51.183</d2p1:Date>
<d2p1:Group/>
<d2p1:Importance>1000</d2p1:Importance>
<d2p1:Last>15.98000</d2p1:Last>
<d2p1:LastUpdate>2024-07-05T15:16:00</d2p1:LastUpdate>
<d2p1:MonthlyChange>2.18000</d2p1:MonthlyChange>
<d2p1:MonthlyPercentualChange>15.7971</d2p1:MonthlyPercentualChange>
<d2p1:Name>Life360</d2p1:Name>
<d2p1:StartDate>2019-08-22T00:00:00</d2p1:StartDate>
<d2p1:State>OPEN</d2p1:State>
<d2p1:Symbol>360:AU</d2p1:Symbol>
<d2p1:Ticker>360</d2p1:Ticker>
<d2p1:URL>/360:au</d2p1:URL>
<d2p1:WeeklyChange>-0.39000</d2p1:WeeklyChange>
<d2p1:WeeklyPercentualChange>-2.3824</d2p1:WeeklyPercentualChange>
<d2p1:YTDChange>8.42000</d2p1:YTDChange>
<d2p1:YTDPercentualChange>111.3757</d2p1:YTDPercentualChange>
<d2p1:YearlyChange>8.43000</d2p1:YearlyChange>
<d2p1:YearlyPercentualChange>111.6556</d2p1:YearlyPercentualChange>
<d2p1:day_high>16.00000</d2p1:day_high>
<d2p1:day_low>15.67000</d2p1:day_low>
<d2p1:decimals>2</d2p1:decimals>
<d2p1:frequency>Live</d2p1:frequency>
<d2p1:lastMonth>13.80000</d2p1:lastMonth>
<d2p1:lastWeek>16.37000</d2p1:lastWeek>
<d2p1:lastYear>7.55000</d2p1:lastYear>
<d2p1:startYear>7.56000</d2p1:startYear>
<d2p1:unit>AUD</d2p1:unit>
<d2p1:yesterday>15.86000</d2p1:yesterday>
</anyType>
<anyType xmlns:d2p1="http://schemas.datacontract.org/2004/07/APILib.DB" i:type="d2p1:Markets.MarketSnapGroup">
<d2p1:Close>2.37000</d2p1:Close>
<d2p1:CloseDate>2024-07-05T00:00:00</d2p1:CloseDate>
<d2p1:Country>United States</d2p1:Country>
<d2p1:DailyChange>0.00000</d2p1:DailyChange>
<d2p1:DailyPercentualChange>0.0000</d2p1:DailyPercentualChange>
<d2p1:Date>2024-07-05T00:00:00</d2p1:Date>
<d2p1:Group/>
<d2p1:Importance>1000</d2p1:Importance>
<d2p1:Last>2.37000</d2p1:Last>
<d2p1:LastUpdate>2024-07-05T15:15:00</d2p1:LastUpdate>
<d2p1:MonthlyChange>-0.46000</d2p1:MonthlyChange>
<d2p1:MonthlyPercentualChange>-16.2544</d2p1:MonthlyPercentualChange>
<d2p1:Name>Avita Medical</d2p1:Name>
<d2p1:StartDate>2019-08-22T00:00:00</d2p1:StartDate>
<d2p1:State>CLOSED</d2p1:State>
<d2p1:Symbol>1811094D:AU</d2p1:Symbol>
<d2p1:Ticker>AVH</d2p1:Ticker>
<d2p1:URL>/1811094d:au</d2p1:URL>
<d2p1:WeeklyChange>-0.05000</d2p1:WeeklyChange>
<d2p1:WeeklyPercentualChange>-2.0661</d2p1:WeeklyPercentualChange>
<d2p1:YTDChange>-1.92000</d2p1:YTDChange>
<d2p1:YTDPercentualChange>-44.7552</d2p1:YTDPercentualChange>
<d2p1:YearlyChange>-2.32000</d2p1:YearlyChange>
<d2p1:YearlyPercentualChange>-49.4670</d2p1:YearlyPercentualChange>
<d2p1:day_high>2.39000</d2p1:day_high>
<d2p1:day_low>2.36000</d2p1:day_low>
<d2p1:decimals>2</d2p1:decimals>
<d2p1:frequency>Daily</d2p1:frequency>
<d2p1:lastMonth>2.83000</d2p1:lastMonth>
<d2p1:lastWeek>2.42000</d2p1:lastWeek>
<d2p1:lastYear>4.69000</d2p1:lastYear>
<d2p1:startYear>4.29000</d2p1:startYear>
<d2p1:unit>AUD</d2p1:unit>
<d2p1:yesterday>2.37000</d2p1:yesterday>
</anyType>
<anyType xmlns:d2p1="http://schemas.datacontract.org/2004/07/APILib.DB" i:type="d2p1:Markets.MarketSnapGroup">
<d2p1:Close>85.99000</d2p1:Close>
<d2p1:CloseDate>2024-07-05T00:00:00</d2p1:CloseDate>
<d2p1:Country>United States</d2p1:Country>
<d2p1:DailyChange>-0.09000</d2p1:DailyChange>
<d2p1:DailyPercentualChange>-0.1046</d2p1:DailyPercentualChange>
<d2p1:Date>2024-07-05T00:00:00</d2p1:Date>
<d2p1:Group>America G20 Major</d2p1:Group>
<d2p1:Importance>1000</d2p1:Importance>
<d2p1:Last>85.99000</d2p1:Last>
<d2p1:LastUpdate>2024-07-05T15:16:00</d2p1:LastUpdate>
<d2p1:MonthlyChange>13.64000</d2p1:MonthlyChange>
<d2p1:MonthlyPercentualChange>18.8528</d2p1:MonthlyPercentualChange>
<d2p1:Name>AAON</d2p1:Name>
<d2p1:StartDate>1993-09-02T00:00:00</d2p1:StartDate>
<d2p1:State>CLOSED</d2p1:State>
<d2p1:Symbol>AAON:US</d2p1:Symbol>
<d2p1:Ticker>AAON</d2p1:Ticker>
<d2p1:URL>/aaon:us</d2p1:URL>
<d2p1:WeeklyChange>-1.25000</d2p1:WeeklyChange>
<d2p1:WeeklyPercentualChange>-1.4328</d2p1:WeeklyPercentualChange>
<d2p1:YTDChange>12.12000</d2p1:YTDChange>
<d2p1:YTDPercentualChange>16.4072</d2p1:YTDPercentualChange>
<d2p1:YearlyChange>-6.30000</d2p1:YearlyChange>
<d2p1:YearlyPercentualChange>-6.8263</d2p1:YearlyPercentualChange>
<d2p1:day_high>86.61010</d2p1:day_high>
<d2p1:day_low>85.61500</d2p1:day_low>
<d2p1:decimals>2</d2p1:decimals>
<d2p1:frequency>daily</d2p1:frequency>
<d2p1:lastMonth>72.35000</d2p1:lastMonth>
<d2p1:lastWeek>87.24000</d2p1:lastWeek>
<d2p1:lastYear>92.29000</d2p1:lastYear>
<d2p1:startYear>73.87000</d2p1:startYear>
<d2p1:unit>USD</d2p1:unit>
<d2p1:yesterday>86.08000</d2p1:yesterday>
</anyType>
</ArrayOfanyType>
https://api.tradingeconomics.com/markets/stocks/country/{country}?c={your_api_key}
SymbolTickerNameCountryDateStateLastCloseCloseDateGroupURLImportanceDailyChangeDailyPercentualChangeWeeklyChangeWeeklyPercentualChangeMonthlyChangeMonthlyPercentualChangeYearlyChangeYearlyPercentualChangeYTDChangeYTDPercentualChangeday_highday_lowyesterdaylastWeeklastMonthlastYearstartYeardecimalsunitfrequencyStartDateLastUpdate
360:AU360Life360United States7/5/2024 5:59:51 AMOPEN15.9800015.980007/5/2024 12:00:00 AM/360:au10000.120000.7566-0.39000-2.38242.1800015.79718.43000111.65568.42000111.375716.0000015.6700015.8600016.3700013.800007.550007.560002AUDLive8/22/2019 12:00:00 AM7/5/2024 3:16:00 PM
1811094D:AUAVHAvita MedicalUnited States7/5/2024 12:00:00 AMCLOSED2.370002.370007/5/2024 12:00:00 AM/1811094d:au10000.000000.0000-0.05000-2.0661-0.46000-16.2544-2.32000-49.4670-1.92000-44.75522.390002.360002.370002.420002.830004.690004.290002AUDDaily8/22/2019 12:00:00 AM7/5/2024 3:15:00 PM
AAON:USAAONAAONUnited States7/5/2024 12:00:00 AMCLOSED85.9900085.990007/5/2024 12:00:00 AMAmerica G20 Major/aaon:us1000-0.09000-0.1046-1.25000-1.432813.6400018.8528-6.30000-6.826312.1200016.407286.6101085.6150086.0800087.2400072.3500092.2900073.870002USDdaily9/2/1993 12:00:00 AM7/5/2024 3:16:00 PM

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)