GetLastQuoteArray

GetLastQuoteArray : Returns LastTradePrice of multiple Symbols – max 25 in single call (detailed)

Supported parameters
ExchangeString value like MCXName of supported exchange. How to get list of supported exchanges you can find here
InstrumentIdentifiersValue of instrument identifiers – max 25How to get list of available instruments and identifiers you can find here
isShortIdentifiers[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.
What is returned ?
Exchange, InstrumentIdentifier (Symbol), LastTradeTime, ServerTime, AverageTradedPrice (VWAP), Close (previous Day’s Close), Open, High, Low, LastTradePrice, LastTradeQty, TotalQtyTraded, BuyPrice (Bid), BuyQty (Bid Size), SellPrice (Ask), SellQty (Sell Size), OpenInterest, QuotationLot (Lot Size), Value (Turnover), PreOpen (if PreOpen), PriceChange (Change in Price compared to previous trading day’s Close), PriceChangePercentage (Percentage Change in Price compared to previous trading day’s Close), OpenInterestChange (Change in Open Interest compared to previous trading day’s Close)
LastTradeTime, ServerTime : These values are expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit https://www.epochconverter.com/ to get formulae to convert human readable time to Epoch and vice versa (scroll to end of their home page)
Sample request(JavaScript)
            {
                MessageType: "GetLastQuoteArray",
                Exchange: "NFO",
				isShortIdentifiers: "false",
                InstrumentIdentifiers: [{Value:"NIFTY-I"}, {Value:"BANKNIFTY-I"}, {Value:"RELIANCE-I"}]
            };
     doSend(request);
Example of returned data in JSON format
{"Result":[{
"Exchange":"NFO",
"InstrumentIdentifier":"NIFTY-I",
"LastTradeTime":1592992800,
"ServerTime":1592992800,
"AverageTradedPrice":10431.5,
"BuyPrice":10296.05,
"BuyQty":75,
"Close":10467.7,
"High":10536.1,
"Low":10274.25,
"LastTradePrice":10298.9,
"LastTradeQty":225,
"Open":10499.3,
"OpenInterest":8179950,
"QuotationLot":75.0,
"SellPrice":10297.25,
"SellQty":75,
"TotalQtyTraded":19117200,
"Value":199421071800.0,
"PreOpen":false,
"PriceChange":-168.8,
"PriceChangePercentage":-1.61,
"OpenInterestChange":781125,
"MessageType":"LastQuoteResult"},
{"Exchange":"NFO",
"InstrumentIdentifier":"BANKNIFTY-I",
"LastTradeTime":1592992800,
"ServerTime":1592992800,
"AverageTradedPrice":21969.7,
"BuyPrice":21385.05,
"BuyQty":80,
"Close":22291.75,
"High":22494.85,
"Low":21300.3,
"LastTradePrice":21385.05,
"LastTradeQty":0,
"Open":22494.85,
"OpenInterest":977780,
"QuotationLot":20.0,
"SellPrice":21389.3,
"SellQty":60,
"TotalQtyTraded":8661240,
"Value":190284844428.0,
"PreOpen":false,
"PriceChange":-906.7,
"PriceChangePercentage":-4.07,
"OpenInterestChange":-308640,
"MessageType":"LastQuoteResult"},
{"Exchange":"NFO",
"InstrumentIdentifier":"RELIANCE-I",
"LastTradeTime":1592992799,
"ServerTime":1592992799,
"AverageTradedPrice":1741.37,
"BuyPrice":1734.0,
"BuyQty":505,
"Close":1726.4,
"High":1773.75,
"Low":1714.35,
"LastTradePrice":1734.9,
"LastTradeQty":0,
"Open":1737.0,
"OpenInterest":16243325,
"QuotationLot":505.0,
"SellPrice":1735.0,
"SellQty":5555,
"TotalQtyTraded":27920440,
"Value":48619816602.8,
"PreOpen":false,
"PriceChange":8.5,
"PriceChangePercentage":0.49,
"OpenInterestChange":1815980,
"MessageType":"LastQuoteResult"}],
"MessageType":"LastQuoteArrayResult"}

Was this helpful?