GetInstrumentsOnSearch

GetInstrumentsOnSearch : Returns array of max. 20 instruments by selected exchange and ‘search string’

Supported parameters
accessKeyAccess key according to your subscriptionRequired parameter.
exchangeString value like MCXName of supported exchange. How to get list of supported exchanges you can find here
searchString value like RELIANCE (in CAPS)Search word value (pattern for search) in CAPS
instrumentTypeString value like FUTIDXOptional parameter. Name of supported Instrument Type. How to get list of supported values you can find here
productString value like BANKNIFTYOptional parameter. Name of supported Product. How to get list of supported values you can find here
expiryString value like 30Jul2015Optional parameter. Name of supported Expiry Date. How to get list of supported values you can find here
optionTypeString value like CEOptional parameter. Name of supported Option Type. How to get list of supported values you can find here
strikePriceString value like 0Optional parameter. Name of supported StrikePrice. How to get list of supported values 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]
formatCSVOptional 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
onlyActive[true]/[false], default = [true]Optional parameter. By default, function will return only active instruments. Function will return all (active + expired) instruments if value equals false.
detailedInfo[true]/[false], default = [false]Optional parameter. By default function will return limited fields in response, function will return additional fields in response when this parameter is set as true.
Examplehttp://endpoint:port/GetInstrumentsOnSearch/?accessKey=0a0b0c&exchange=NFO&xml=true&search=NIFTY&detailedInfo=true
What is returned ?
Identifier (Symbol), Name (Instrument Type), Expiry (Expiry Date), StrikePrice, Product, OptionType, ProductMonth, TradeSymbol (ShortIdentifier for same Identifier/Symbol), QuotationLot (Lot Size), When detailedInfo=true, following additional information will be sent (if available from Exchange)TokenNumber (Token number of Symbol), LowPriceRange (Lower circuit limit),HighPriceRange(Upper circut limit)
Example of returned data
JSONXML
{“INSTRUMENTS”: [{“Identifier”:”OPTIDX_NIFTY_15JUL2021_CE_14650″,
“Name”:”OPTIDX”,”Expiry”:”15Jul2021″,”StrikePrice”:14650.0,
“Product”:”NIFTY”,”PriceQuotationUnit”:””,”OptionType”:”CE”,
“ProductMonth”:”15Jul2021″,”UnderlyingAsset”:””,”UnderlyingAssetExpiry”:””,
“IndexName”:””,”TradeSymbol”:”NIFTY15JUL2114650CE”,”QuotationLot”:75.0,
“Description”:””,”TokenNumber”:”44079″,”LowPriceRange”:26.15,
“HighPriceRange”:2104.15},{“Identifier”:”OPTIDX_NIFTY_15JUL2021_PE_15700″,
“Name”:”OPTIDX”,”Expiry”:”15Jul2021″,”StrikePrice”:15700.0,
“Product”:”NIFTY”,”PriceQuotationUnit”:””,”OptionType”:”PE”,
“ProductMonth”:”15Jul2021″,”UnderlyingAsset”:””,
“UnderlyingAssetExpiry”:””,”IndexName”:””,”TradeSymbol”:”NIFTY15JUL2115700PE”,
“QuotationLot”:75.0,”Description”:””,”TokenNumber”:”44171″,
“LowPriceRange”:0.05,”HighPriceRange”:600.5},
“MessageType”:”InstrumentsOnSearchResult”}
]}
<?xml version=”1.0″ encoding=”utf-16″ ?>

<Instruments

xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
<Value Exchange=”NFO” Identifier=”OPTIDX_NIFTY_22JUL2021_PE_16500″
Name=”OPTIDX” Expiry=”22Jul2021″ StrikePrice=”16500″ Product=”NIFTY”
PriceQuotationUnit=”” OptionType=”PE” ProductMonth=”22Jul2021″
UnderlyingAsset=”” UnderlyingAssetExpiry=”” IndexName=””
TradeSymbol=”NIFTY22JUL2116500PE” QuotationLot=”75″ Description=””
TokenNumber=”45880″ LowPriceRange=”0.05″ HighPriceRange=”1521.45″/>
<Value Exchange=”NFO” Identifier=”OPTIDX_NIFTY_22JUL2021_PE_16150″
Name=”OPTIDX” Expiry=”22Jul2021″ StrikePrice=”16150″ Product=”NIFTY”
PriceQuotationUnit=”” OptionType=”PE” ProductMonth=”22Jul2021″
UnderlyingAsset=”” UnderlyingAssetExpiry=”” IndexName=””
TradeSymbol=”NIFTY22JUL2116150PE” QuotationLot=”75″ Description=””
TokenNumber=”47534″ LowPriceRange=”0.05″ HighPriceRange=”956.85″/

</Instruments>

CSVExchange,Expiry,Identifier,IndexName,Name,OptionType,PriceQuotationUnit,Product,ProductMonth,StrikePrice,TradeSymbol,UnderlyingAsset,UnderlyingAssetExpiry,QuotationLot,Description,TokenNumber,LowPriceRange,HighPriceRange NFO,25Apr2024,OPTIDX_NIFTY_25APR2024_PE_23100,,OPTIDX,PE,,NIFTY,25Apr2024,23100.0,NIFTY25APR2423100PE,,,50.0,,68247,251.2,1257.6

Was this helpful?