Market Quotes
For retrieving market quotes such as Last Traded Price, OHLC and Volume of instruments, you can use this API. This API will return current LTP, OHLC of the day and volume data with timestamp. This API supports upto 1000
instruments per API call. If you want a real time market data then you can refer to 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 of an instrument you have to send exchange_token
and corresponding exchange
in the request body of API and to receive market quote data of index you have to send the trading_symbol
and corresponding exchange
in the request body of API as listed in the Instrument CSV 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
]
]
}