GetInstrumentTypes

GetInstrumentTypes : Returns list of Instrument Types (e.g. FUTIDX, FUTSTK, etc.)

Supported parameters
accessKey Access key according to your subscription Required parameter.
exchange String value like MCX Name of supported exchange. How to get list of supported exchanges you can find here
xml [true]/[false], default = [false] Optional parameter. By default function will return JSON data. Functions will return XML data if set as [true]
format CSV Optional parameter. When format=CSV, data in CSV format will be returned. Please make sure not to pass xml parameter (neither True nor False) when format=CSV is sent
Example http://endpoint:port/GetInstrumentTypes/?accessKey=0a0b0c&exchange=MCX&xml=true
What is returned ?
InstrumentTypes
Example of returned data
JSON XML
{“INSTRUMENTTYPES”: [“FUTIDX”,”FUTSTK”,”OPTIDX”,”OPTSTK”]}
<?xml version=”1.0″ encoding=”utf-16″ ?>

<StringArray

xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
<Value>FUTIDX</Value>
<Value>FUTSTK</Value>
<Value>OPTIDX</Value>
<Value>OPTSTK</Value>

</StringArray>

CSV
Value
FUTIDX
FUTSTK
OPTIDX
OPTSTK

Was this helpful?