GetExpiryDates

GetExpiryDates : Returns array of Expiry Dates (e.g. 25JUN2020, 30JUL2020, etc.)

Supported parameters
Exchange String value like MCX Name of supported exchange. How to get list of supported exchanges you can find here
InstrumentType String value like FUTIDX Optional parameter. Name of supported Instrument Type. How to get list of supported values you can find here
Product String value like BANKNIFTY Optional parameter. Name of supported Product. How to get list of supported values you can find here

 

What is returned ?
ExpiryDates

 

Example send request(JavaScript)
{
MessageType: "GetExpiryDates",
Exchange: "NFO"
};
var message = JSON.stringify(request);
websocket.send(message);
Example of returned data in JSON format
{
"Request":{
"Exchange":"NFO",
"MessageType":"GetExpiryDates"
},
"Result":[
{"Value":"25JUN2020"},
{"Value":"28DEC2017"},
{"Value":"31DEC2020"}
],
"MessageType":"ExpiryDatesResult"
}
×

Was this helpful?