Skip to main content

Index Constituents

Retrieve constituent companies and their components for a specific market index.

GET/3.0/market/index/constituents

Description

This endpoint returns detailed information about the constituent companies that make up a specific market index, including their actions, weightings, and other component details.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

NameTypeRequiredDescriptionExample
codestringNoIndex code identifierKSE100
pageintegerYesPage number for pagination. Default is 11

Response

Success Response (200)

{
"status": "ok",
"offset": 0,
"count": 50,
"total": 278,
"data":[
{
"id": "677bd52e07cdfd390e548beb",
"cd": "KSE100",
"ac": 1,
"sy": "ENGROH",
"dt": "2025-01-06",
"crt": "2025-01-06T13:05:50.568Z",
"mod": "2025-01-06T13:05:50.568Z"
},
{
"id": "677bd52f07cdfd390e548bec",
"cd": "KSE100",
"ac": 1,
"sy": "KTML",
"dt": "2025-01-06",
"crt": "2025-01-06T13:05:51.128Z",
"mod": "2025-01-06T13:05:51.128Z"
},
]
}

Response Fields

FieldTypeDescription
idstringUnique identifier
cdstringIndex code
acintegerAction status (1=Active, 0=Inactive)
systringStock symbol
dtstringDate of record (YYYY-MM-DD)
crtstringCreation timestamp (ISO 8601)
modstringLast modification timestamp (ISO 8601)

Error Responses

For detailed Common Error responses, see the Error Handling.

Missing page parameter (200)

{
"status": "error",
"message": "no_page_provided"
}

Examples

Get Index Constituents

curl -X GET "https://csapis.com/3.0/market/index/constituents?code=KSE100&page=1" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Index Composition: Get complete list of index constituent companies
  • Index Tracking: Understand which stocks make up the index
  • Rebalancing Information: Track index composition changes
  • Investment Analysis: Analyze index components for investment decisions
  • Portfolio Benchmarking: Compare portfolio with index constituents
  • Risk Analysis: Understand index concentration and diversification