Hello Upstox
I want to fetch multiple option chain for multiple instrument-key
const axios = require(‘axios’);
const url = ‘https://api.upstox.com/v2/option/chain’;
const params = {
instrument_key: ‘NSE_INDEX|Nifty 50’,
expiry_date: ‘2024-03-28’
};
const headers = {
‘Accept’: ‘application/json’,
‘Authorization’: ‘Bearer {your_access_token}’
};
axios.get(url, { params, headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(‘Error:’, error);
});