Skip to main content

OHLC Quotes

API to retrieve the OHLC (Open, High, Low, Close) quotes for one or more instruments. Provides OHLC snapshots of up to 1000 instruments in one go.

Header Parameters

NameRequiredTypeDescription
AuthorizationtruestringRequires the format Bearer access_token where access_token is obtained from the Token API.
AccepttruestringDefines the content format the client expects, which should be set to application/json.

Query Parameters

NameRequiredTypeDescription
instrument_keytruestringComma separated list of instrument keys. For the regex pattern applicable to this field, see the Field Pattern Appendix.
intervaltruestringInterval to get ohlc data.
Possible values: 1d, I1, I30.
Notice of Deprecation

The parameter (symbol) is deprecated and will be removed in future versions. We've renamed it (instrument_key) for a more meaningful and significant name.

Responses

Response Body

{
"status": "success",
"data": {
"NSE_EQ:NHPC": {
"ohlc": {
"open": 53.4,
"high": 53.8,
"low": 51.75,
"close": 52.05
},
"last_price": 52.05,
"instrument_token": "NSE_EQ|INE848E01016"
}
}
}
NameTypeDescription
statusstringA string indicating the outcome of the request. Typically success for successful operations.
dataobjectData object holding OHLC information
data.ohlcobjectData object with OHLC information
data.ohlc.opennumberThe open price of the trading session
data.ohlc.highnumberThe high price of the trading session
data.ohlc.lownumberThe low price of the trading session
data.ohlc.closenumberThe most recent closing price of the symbol
data.last_pricenumberThe last traded price of symbol
data.instrument_tokenstringKey of the instrument. For the regex pattern applicable to this field, see the Field Pattern Appendix.

Examples

A comprehensive set of examples is provided to illustrate various use cases and implementation scenarios for this API. To view detailed examples and access sample code, please refer to: API Examples.

Loading...