GetOptionTypes

GetOptionTypes : Returns list of Option Types (e.g. CE, PE, 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
Expiry String value like 30Jul2015 Optional parameter. Name of supported Expiry Date. How to get list of supported values you can find here
What is returned ?
OptionTypes
Sample request(JavaScript)
{
MessageType: "GetOptionTypes",
Exchange: "NFO",
};
var message = JSON.stringify(request);
websocket.send(message);
Example of returned data in JSON format
{
"Request":{
"Exchange":"NFO",
"MessageType":"GetOptionTypes"
},
"Result":[
{"Value":"PE"},
{"Value":"CE"}
],
"MessageType":"OptionTypesResult"
}

Was this helpful?