Ticker
Endpoint URL
The Ticker API provides historical price data for stocks in customizable time windows. It allows you to fetch OHLCV (Open, High, Low, Close, Volume) data for any stock with flexible interval options.
Parameters
Path Parameters
exchange:symbol
(required): Combined exchange and symbol (e.g., NSE:ZOMATO). Defaults to NSE:ZOMATO if not provided.
Exchange
NSE: NSE Equity
NFO: NSE Futures & Options
CDS: NSE Currency
BSE: BSE Equity
BFO: BSE Futures & Options
BCD: BSE Currency
MCX: MCX Commodity
NCDEX: NCDEX Commodity
Query Parameters
interval
(optional): The time interval for the data. Default: D Supported intervals:Seconds: 5s, 10s, 15s, 30s, 45s
Minutes: 1m, 2m, 3m, 5m, 10m, 15m, 20m, 30m
Hours: 1h, 2h, 4h
Days: D
Weeks: W
Months: M
from
(required): The start date in YYYY-MM-DD format or millisecond timestampto
(required): The end date in YYYY-MM-DD format or millisecond timestampadjusted
(optional): Whether to adjust for splits. Default: truetrue: Results are adjusted for splits
false: Results are NOT adjusted for splits
sort
(optional): Sort results by timestamp. Default: ascasc: Results sorted in ascending order (oldest first)
desc: Results sorted in descending order (newest first)
Authentication
API key must be provided either:
In the request header as
X-API-KEY
As a query parameter
apikey
Example Request
Response Format
Error Responses
400: Bad Request - Invalid parameters
403: Forbidden - Invalid API key
404: Not Found - Broker module not found
500: Internal Server Error - Unexpected error
Example Usage
For example, to get Daily bars for ZOMATO stock from NSE:
This will return 5-minute OHLCV bars for ZOMATO between December 02, 2024, and January 01, 2025.
Ticker API Documentation
The Ticker API provides historical stock data in both daily and intraday formats. The API supports both JSON and plain text responses.
Endpoint
Parameters
symbol
string
Yes
Stock symbol with exchange (e.g., NSE:ZOMATO)
NSE:ZOMATO
interval
string
No
Time interval (D, 1m, 5m, 1h, etc.). Default: D
5m
from
string
No
Start date in YYYY-MM-DD format
2024-12-01
to
string
No
End date in YYYY-MM-DD format
2024-12-31
apikey
string
Yes
API Key for authentication
your_api_key
format
string
No
Response format (json/txt). Default: json
txt
Response Formats
Plain Text Format (format=txt)
Daily Data (interval=D)
Format: Ticker,Date_YMD,Open,High,Low,Close,Volume
Example:
Intraday Data (interval=1m, 5m, etc.)
Format: Ticker,Date_YMD,Time,Open,High,Low,Close,Volume
Example:
JSON Format (format=json)
Error Responses
Plain Text Format
Error messages are returned as plain text with appropriate HTTP status codes.
Example:
JSON Format
HTTP Status Codes
200
Successful request
400
Bad request (invalid parameters)
403
Invalid API key
404
Broker module not found
500
Internal server error
Rate Limiting
The API is rate-limited to 10 requests per second by default. This can be configured using the API_RATE_LIMIT
environment variable.
Notes
All timestamps in the responses are in Indian Standard Time (IST)
Volume is always returned as an integer
If no symbol is provided, defaults to "NSE:ZOMATO"
If no exchange is specified in the symbol, defaults to "NSE"
The API supports both formats:
NSE:ZOMATO
(preferred)ZOMATO
(defaults to NSE)
Last updated