Skip to main content

Sector Allocation

Retrieve sector-wise allocation data for a specific mutual fund's equity portfolio.

GET/3.0/funds/sector-allocation

Description

This endpoint provides detailed sector allocation breakdown for a mutual fund's equity investments, showing how the fund's equity portfolio is distributed across different economic sectors. This information helps investors understand sector concentration, diversification, and exposure to specific industries.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

NameTypeRequiredDescriptionExample
fund_idstringYesThe unique identifier of the mutual fund.FUND123

Response

Success Response (200)

{
"status": "ok",
"message": "",
"data": {
"fund_id": "FUND123",
"created": "2024-01-01T10:00:00Z",
"modified": "2024-01-15T14:30:00Z",
"frequency": "quarterly",
"periods": [
{
"id": "Q1-2024",
"label": "Q1 2024",
"date": "2024-03-31"
},
{
"id": "Q4-2023",
"label": "Q4 2023",
"date": "2023-12-31"
}
],
"rows": [
{
"key": "commercial_banks",
"percent": true,
"label": "Commercial Banks",
"unit": "%",
"heading": false,
"values": [25.5, 28.2]
},
{
"key": "oil_gas",
"percent": true,
"label": "Oil & Gas",
"unit": "%",
"heading": false,
"values": [18.3, 15.8]
},
{
"key": "technology",
"percent": true,
"label": "Technology",
"unit": "%",
"heading": false,
"values": [12.7, 14.2]
},
{
"key": "cement",
"percent": true,
"label": "Cement",
"unit": "%",
"heading": false,
"values": [8.9, 9.5]
},
{
"key": "fertilizer",
"percent": true,
"label": "Fertilizer",
"unit": "%",
"heading": false,
"values": [7.2, 6.8]
}
]
}
}

Response Fields

FieldTypeDescription
fund_idstringUnique identifier of the fund
createdstringRecord creation timestamp (ISO 8601 format)
modifiedstringLast modification timestamp (ISO 8601 format)
frequencystringUpdate frequency (e.g., "quarterly", "monthly")
periodsobjectArray of time periods with allocation data - View
rowsobjectArray of sector allocation data rows - View

Period Fields (periods[])

FieldTypeDescription
idstringUnique period identifier
labelstringHuman-readable period label
datestringPeriod end date (YYYY-MM-DD)

Row Fields (rows[])

FieldTypeDescription
keystringSector identifier
percentbooleanWhether values are percentages
labelstringHuman-readable sector name
unitstringUnit of measurement
headingbooleanWhether this is a heading row
valuesarrayArray of percentage values corresponding to periods

Error Responses

For detailed Common Error responses, see the Error Handling.

Fund Not Found (200)

{
"status": "error",
"message": "No `fund_id` specified"
}

Examples

Get Fund Sector Allocation Data

curl -X GET "https://csapis.com/3.0/funds/sector-allocation?fund_id=FUND123" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Sector Analysis: Understand fund exposure to different economic sectors
  • Risk Assessment: Evaluate sector concentration and diversification
  • Investment Strategy: Compare sector allocation across funds
  • Market Timing: Monitor sector rotation strategies
  • Performance Attribution: Analyze sector contributions to fund performance