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
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
symbol | string | Yes | Stock/Index symbol to retrieve data for | MZNPI |
from | string | Yes | Start date in YYYY-MM-DD format | 2024-08-18 |
to | string | Yes | End date in YYYY-MM-DD format | 2025-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
| Field | Type | Description |
|---|---|---|
time | number | Unix timestamp (seconds since epoch, UTC) |
open | number | Opening price |
high | number | Highest price |
low | number | Lowest price |
close | number | Closing price |
volume | number | Trading volume |
value | number | Total 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&from=2024-08-18&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