Skip to main content

Sector Returns

Calculate and retrieve returns of a sector using market cap weighted returns.

GET/3.0/sectors/returns

Description

This endpoint calculates and returns market cap weighted returns for a specific sector.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

This endpoint does not accept any query parameters.

Response

Success Response (200)

{
"status": "ok",
"message": "",
"data": [
{
"code": "TECH",
"ret": {
"mc1w": 3.12,
"mcwtd": 5.45,
"mc1m": 7.89,
"mcmtd": 9.34,
"mc3m": 15.67,
"mc3mtd": 17.23,
"mc6m": 22.45,
"mc1y": 30.12,
"mcytd": 4.56,
"mcfytd": 10.78,
"mc2y": 50.34,
"mc3y": 75.89
},
},
{
"code": "HEALTH",
"ret": {
"mc1w": 1.85,
"mcwtd": 3.67,
"mc1m": 4.92,
"mcmtd": 5.78,
"mc3m": 10.34,
"mc3mtd": 11.56,
"mc6m": 15.89,
"mc1y": 20.45,
"mcytd": 2.34,
"mcfytd": 6.12,
"mc2y": 35.67,
"mc3y": 55.23
},
},
]
}

Response Fields

FieldTypeDescription
codestringSector code identifier
retobjectMarket cap weighted returns for various time periods - View

Market Cap Returns Fields

FieldTypeDescription
mc1wnumberMarket cap return for 1 week period (%)
mcwtdnumberMarket cap return week-to-date (%)
mc1mnumberMarket cap return for 1 month period (%)
mcmtdnumberMarket cap return month-to-date (%)
mc3mnumberMarket cap return for 3 months period (%)
mc3mtdnumberMarket cap return 3 months to date (%)
mc6mnumberMarket cap return for 6 months period (%)
mc1ynumberMarket cap return for 1 year period (%)
mcytdnumberMarket cap return year-to-date (%)
mcfytdnumberMarket cap return fiscal year-to-date (%)
mc2ynumberMarket cap return for 2 years period (%)
mc3ynumberMarket cap return for 3 years period (%)

Error Responses

For detailed Common Error responses, see the Error Handling.

Examples

Get Sector Returns for Specific Period

curl -X GET "https://csapis.com/3.0/sectors/returns" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Performance Analysis: Analyze sector performance across different time periods
  • Return Comparison: Compare sector returns with market benchmark
  • Stock Selection: Identify top and bottom performers within sector
  • Portfolio Rebalancing: Use sector returns for portfolio allocation decisions
  • Outperformance Tracking: Monitor sector performance vs market benchmark
  • Historical Analysis: Track sector return trends over time