Skip to main content

Sectors

Retrieve list of all market sectors and their classifications.

GET/3.0/market/sectors

Description

This endpoint returns a comprehensive list of all sectors in the PSX market with their codes, names, and classifications. Useful for sector-based filtering and analysis.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

This endpoint does not accept any query parameters.

Response

Success Response (200)

{
"status": "ok",
"message": "",
"count": 37,
"data": [
{
"code": "0801",
"name": "AUTOMOBILE ASSEMBLER"
},
{
"code": "0803",
"name": "CABLE & ELECTRICAL GOODS"
},
{
"code": "0804",
"name": "CEMENT"
}
]
}

Response Fields

FieldTypeDescription
codestringUnique sector code identifier
namestringFull sector name

Error Responses

For detailed Common Error responses, see the Error Handling.

Examples

Get All Sectors

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

Use Cases

  • Sector Classification: Get all market sectors for classification
  • Sector Filtering: Use sector codes for filtering data
  • Sector Analysis: Analyze sector composition and market cap
  • Sector Selection: Identify sectors for investment
  • Market Structure: Understand market organization
  • Reporting: Generate sector-based reports