5 Min Interval Chart
Retrieve 5-minute interval OHLCV (Open, High, Low, Close, Volume) data for intraday trading analysis.
GET/3.0/market/intraday/5m
Description
This endpoint provides 5-minute interval candlestick data for stocks and indices. Each data point represents trading activity for a 5-minute period during the current trading session, with the last tick updating in real time. This interval is ideal for swing traders and active day traders.
Request
Authentication
- Type: Bearer Token
- Required: Yes
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
symbol | string | Yes | Stock/Index symbol to retrieve data for | AHCL |
Response
Success Response (200)
{
"status": "ok",
"message": "",
"data": [
{
"time": 1545998400,
"open": 37822.29,
"high": 37891.19,
"low": 36918.66,
"close": 37167.02,
"volume": 132828200,
"value": 7269517182.9
},
{
"time": 1545909247,
"open": 38382.24,
"high": 38460.1,
"low": 37701.16,
"close": 37853.57,
"volume": 69739040,
"value": 3724077874.6
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
time | number | Unix timestamp (seconds since epoch, UTC) |
open | number | Opening price for the 5-minute period |
high | number | Highest price for the 5-minute period |
low | number | Lowest price for the 5-minute period |
close | number | Closing price for the 5-minute period |
volume | number | Trading volume for the 5-minute period |
value | number | Total traded value (PKR) |
Error Responses
For detailed Common Error responses, see the Error Handling.
Examples
Get 5 Minute Interval Data
curl -X GET "https://csapis.com/3.0/market/intraday/5m?symbol=AHCL" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Cases
- Swing Trading: Monitor 5-minute price patterns for swing trading
- Intraday Charts: Create detailed 5-minute candlestick charts
- Trend Analysis: Identify short-term trends and support/resistance
- Active Trading: Track medium-term intraday movements