GetLastQuoteShort : Returns LastTradePrice of Single Symbol (short)

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
instrumentIdentifierValue of instrument identifierHow to get list of available instruments and identifiers you can find here.
You will need to use URL Econding for instrument identifiers with special characters (like BAJAJ-AUTO, M&M, L&T, NIFTY 50, etc.) as explained here
xml[true]/[false], default = [false]Optional parameter. By default function will return JSON data. Functions will return XML data if set as [true]
isShortIdentifier[true]/[false], default = [false]Optional parameter. By default function will use long instrument identifier format. Functions will use short instrument identifier format if set as [true]. Example of ShortIdentifiers are NIFTY25MAR21FUT, RELIANCE25MAR21FUT, NIFTY25MAR2115000CE, etc.
Example http://endpoint:port/GetLastQuoteShort/?accessKey=0a0b0c&exchange=MCX&instrumentIdentifier=XXX_MCX0_25MAR2021_XX_X&xml=true&isShortIdentifier=true
What is returned ?
Exchange, InstrumentIdentifier (Symbol), LastTradeTime, BuyPrice (Bid Price), LastTradePrice, SellPrice (Ask Price)
LastTradeTime : In JSON Response, this value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit to get formulae to convert human readable time to Epoch and vice versa (scroll to end of their home page)
Example of returned data
<?xml version=”1.0″ encoding=”utf-16″ ?>


Exchange=”MCX” InstrumentIdentifier=”XXX_MCX0_25MAR2021_XX_X” LastTradeTime=”2-8-2014 12:40:00 PM” BuyPrice=”870.1″ LastTradePrice=”875″ SellPrice=”874″


Also available additional function GetLastQuoteShortWithClose that returns additional close price of previous day.

Was this helpful?