Endpoints
List Sectors
GET
/
sectors
List Sectors
curl --request GET \
--url https://psxdata-api.fastapicloud.dev/sectorsimport requests
url = "https://psxdata-api.fastapicloud.dev/sectors"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://psxdata-api.fastapicloud.dev/sectors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"sector_code": "<string>",
"sector_name": "<string>",
"advance": 123,
"decline": 123,
"unchanged": 123,
"turnover": 123,
"market_cap_b": 123
}
],
"meta": {
"timestamp": "<string>",
"cached": true,
"count": 123
}
}⌘I
List Sectors
curl --request GET \
--url https://psxdata-api.fastapicloud.dev/sectorsimport requests
url = "https://psxdata-api.fastapicloud.dev/sectors"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://psxdata-api.fastapicloud.dev/sectors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"sector_code": "<string>",
"sector_name": "<string>",
"advance": 123,
"decline": 123,
"unchanged": 123,
"turnover": 123,
"market_cap_b": 123
}
],
"meta": {
"timestamp": "<string>",
"cached": true,
"count": 123
}
}