getSectors

The getSectors API provides returns using weighted alpha on sectors covering multiple periods

Query Parameters

Parameter Description Data Type
components Whether to include components of the sector.
dailyData Whether to include daily data: Open, High, Low, Close, Previous Close, 52-week high and 52-week low
sector The symbol of the sector. Multiple sectors separated by a comma may be used.
sectorPeriod The period used to calculate the weighted alpha return by the sector, includes: 1-day ("1DA"), 1-month ("1MO"), 3-month ("3MO"), 6-month ("6MO"), 9-month ("9MO"), 12-month ("12MO") and year-to-date ("YTD").
sortDir Sorting method that should be applied.

Response Fields

Field Description Data Type
change The change in last traded price of the sector. double
close The closing price for the sector for the current day. double
componentName The name of a component of the sector. enum
componentSymbol The symbol for a component of the sector. enum
components The symbol for a component of the sector. enum
fiftyTwoWeekHigh The highest price for the sector over the previous 52-weeks double
fiftyTwoWeekLow The lowest price for the sector over the previous 52-weeks double
high The high price for the sector for the current day. double
lastTrade The last traded price of the sector. double
low The low price for the sector for the current day. double
open The opening price for the sector for the current day. double
percentChange The percent change in the last traded price of the sector. double
previousClose The closing price for the sector for the previous day. double
sector The name of the sector. string
stocks The number of stocks the sector is comprised of. integer
symbol The symbol of the sector. string
timestamp The timestamp for the data. dateTime
weightAlpha The weighted alpha of the sector. double

About the Vendor

From market data feeds to website content solutions and trading software to our flagship financial portal, Barchart.com, and individual subscription services, Barchart is the definitive source for comprehensive financial data and information.