Skip to main content

End of Day Stocks & Index - Unadjusted

Retrieve unadjusted end-of-day OHLCV (Open, High, Low, Close, Volume) data for stocks and indices over a specified date range.

GET/3.0/market/eod

Description​

This endpoint provides unadjusted historical price data for individual stocks and indices, including open, high, low, close prices, and volume for each trading day in the specified date range. The data is not adjusted for corporate actions.

Request​

Authentication​

  • Type: Bearer Token
  • Required: Yes

Parameters​

NameTypeRequiredDescriptionExample
symbolstringYesStock/Index symbol to retrieve data forMZNPI
date_fromstringNoStart date in YYYY-MM-DD format2024-08-18
date_tostringNoEnd date in YYYY-MM-DD format2025-08-18

Response​

Success Response (200)​

{
"status": "ok",
"message": "",
"count": 245,
"data": [
{
"time": 1692374400,
"open": 1245.50,
"high": 1250.25,
"low": 1240.75,
"close": 1248.00,
"volume": 125000,
"value": 155875000
},
{
"time": 1692460800,
"open": 1248.00,
"high": 1255.50,
"low": 1245.00,
"close": 1252.25,
"volume": 142000,
"value": 177868000
}
]
}

Response Fields​

FieldTypeDescription
timenumberUnix timestamp (seconds since epoch, UTC)
opennumberOpening price
highnumberHighest price
lownumberLowest price
closenumberClosing price
volumenumberTrading volume
valuenumberTotal traded value (PKR)

Error Responses​

For detailed Common Error responses, see the Error Handling.

No symbol Provided (200)​

{
"status": "error",
"message": "no `symbol` provided"
}

Examples​

Get Unadjusted Historical Data​

curl -X GET "https://csapis.com/3.0/market/eod?symbol=MZNPI&date_from=2024-08-18&date_to=2025-08-18" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases​

  • Raw Data Analysis: Analyze original unadjusted price data
  • Volume Analysis: Study trading volumes and value
  • Daily Charting: Create daily candlestick charts
  • Performance Tracking: Monitor price movements