GetProducts : Returns list of Products (e.g. NIFTY, BANKNIFTY, GAIL, 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 |
What is returned ?
Products |
Sample request(JavaScript)
{ MessageType: "GetProducts", Exchange: "NFO", }; var message = JSON.stringify(request); websocket.send(message);
Example of returned data in JSON format
{ "Request":{ "Exchange":"NFO", "MessageType":"GetProducts" }, "Result":[ {"Value":"NIFTY"}, {"Value":"GAIL"} ], "MessageType":"ProductsResult" }