Skip to main content

Single Symbol Overview

Retrieve the most recent snapshot of a single stock ticker including pricing, sector, valuation metrics, and market data.

GET/3.0/market/stock

Description

This endpoint returns a comprehensive snapshot of a single stock symbol including current price, trading volume, market capitalization, P/E ratio, dividend yield, and the indices it's listed in. This is ideal for quick lookups of a specific company's market data.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

NameTypeRequiredDescriptionExample
symbolstringYesStock symbol/ticker codeBAFS

Response

Success Response (200)

{
"status": "ok",
"message": "",
"data":{
"date": "2025-12-11 12:26:54",
"symbol": "BAFS",
"name": "Baba Farid Sugar Mills Limited",
"sector": "0826",
"type": 1,
"status": 1,
"open": 337,
"high": 337,
"low": 325,
"close": 332.99,
"volume": 1412,
"ldcp": 330.88,
"change": 2.11,
"ldcv": 227,
"change_percent": 0.0064,
"bid_price": 326.05,
"bid_volume": 50,
"ask_price": 332.99,
"ask_volume": 8,
"high52": 388.42,
"low52": 41,
"ucap": 363.97,
"lcap": 297.79,
"shares": 9450000,
"free_float": 472500,
"market_cap": 3146755500,
"listed_in": [
"ALLSHR"
],
"haircut": 42.5,
"xb": false,
"xd": false,
"xr": false,
"sd": false
}
}

Response Fields

FieldTypeDescription
datestringData timestamp (YYYY-MM-DD HH:MM:SS)
symbolstringStock symbol/ticker
namestringCompany name
sectorstringSector classification
typenumberStock type ( 1- Company, 2 - Rights, 5 - Defaulter)
statusnumberStock status (0 - Inactive, 1 - Active, 2 - Suspended, 3 - Hidden)
opennumberOpening price
highnumberHighest price
lownumberLowest price
closenumberClosing price
volumenumberTrading volume
ldcpnumberLast day close price
changenumberAbsolute price change
ldcvnumberLast day close volume
change_percentnumberPercentage price change
bid_pricenumberCurrent bid price
bid_volumenumberBid volume
ask_pricenumberCurrent ask price
ask_volumenumberAsk volume
high52number52-week high price
low52number52-week low price
ucapnumberUpper circuit price
lcapnumberLower circuit price
sharesnumberTotal shares outstanding
free_floatnumberFree float shares
market_capnumberMarket capitalization
listed_inarrayIndices the stock is listed in
haircutnumberMargin haircut percentage
xbbooleanXB flag (ex-bonus)
xdbooleanXD flag (ex-dividend)
xrbooleanXR flag (ex-rights)
sdbooleanSD flag (ex-specie-dividend)

Error Responses

For detailed Common Error responses, see the Error Handling.

Missing Symbol (200)

{
"status": "error",
"message": "symbol not provided"
}

Stock Not Found (200)

{
"status": "error",
"message": "not found"
}

Examples

Get Single Stock Overview

curl -X GET "https://csapis.com/3.0/market/stock?symbol=UBLPETF" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Stock Quick Look: Get a snapshot of a specific stock's current performance
  • Valuation Analysis: Review P/E ratio and dividend yield
  • Technical Analysis: Access pivot points and support/resistance levels
  • Portfolio Tracking: Monitor individual stock holdings
  • Investment Decision: Compare valuation metrics across stocks