Market Quotes
To retrieve market quotes such as the Last Traded Price (LTP), OHLC, and volume of instruments, you can use this API. It returns the current LTP, intraday OHLC, and volume data along with a timestamp. This API supports up to 1,000
instruments per call.
For real-time market data, you can refer to the Market Data Websocket.
Note
If your app type is partner you will not be able to call this API. Please go to the EaseAPI For Business section to see how partners can use EaseAPI.
Sample code¶
To receive market quote data for an instrument, you need to send the exchange_token
and corresponding exchange
in the request body of the API.
To receive market quote data for an index, you need to send the trading_symbol
and corresponding exchange
in the request body, as listed in the Instrument CSV file file.
curl --location 'https://easeapi.venturasecurities.com/instrument/v1/ohlcv' \
--header 'x-client-id: AA0605' \
--header 'x-app-key: 8ab5rt7yp2lm9qw4s1ex' \
--header 'Content-Type: application/json' \
--header 'Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...' \
--data '{
"exchange":"NSE",
"tokens":["2885","Nifty 50"]
}'
import requests
import json
url = "https://easeapi.venturasecurities.com/instrument/v1/ohlcv"
payload = json.dumps({
"exchange": "NSE",
"tokens": [
"2885",
"Nifty 50"
]
})
headers = {
'x-client-id': 'AA0605',
'x-app-key': '8ab5rt7yp2lm9qw4s1ex',
'Content-Type': 'application/json',
'Authorization': 'Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
const axios = require('axios');
let data = JSON.stringify({
"exchange": "NSE",
"tokens": [
"2885",
"Nifty 50"
]
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://easeapi.venturasecurities.com/instrument/v1/ohlcv',
headers: {
'x-client-id': 'AA0605',
'x-app-key': '8ab5rt7yp2lm9qw4s1ex',
'Content-Type': 'application/json',
'Authorization': 'Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response¶
{
"success": true,
"message": "",
"data": [
[
"2885", // instrument token
1466.20, // last traded price
1431.0, // open
1471.0, // high
1428.10, // low
1466.20, // close
29010635, // volume
"20/06/2025 15:59:59" // timestamp
],
[
"Nifty 50", // index name
25112.400391, // index value/ltp
24787.650391, // open
25136.199219, // high
24783.650391, // low
25112.400391, // close
0,
"20/06/2025 16:17:22" // timestamp
]
]
}