GetLastQuoteArrayShortWithClose

GetLastQuoteArrayShortWithClose : Returns LastTradePrice of multiple Symbols – max 25 in single call (short) with Close of Previous Day

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, BuyPrice (Bid Price), Close (Previous Trading Day’s Close), LastTradePrice, SellPrice (Ask Price)
LastTradeTime : This value is 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: "GetLastQuoteArrayShortWithClose",
                Exchange: "NFO",
				isShortIdentifiers: "True",
                InstrumentIdentifiers: [{Value:"NIFTY25MAR21FUT"}, {Value:"BANKNIFTY25MAR21FUT"}, {Value:"RELIANCE25MAR21FUT"}]
            };
     doSend(request);
Example of returned data in JSON format
{"Result":[{
"Exchange":"NFO",
"InstrumentIdentifier":"NIFTY25MAR21FUT",
"LastTradeTime":1592992800,
"BuyPrice":10296.05,
"Close":0.0,
"LastTradePrice":10298.9,
"SellPrice":10297.25,
"MessageType":"LastQuoteShortWithCloseResult"},
{"Exchange":"NFO",
"InstrumentIdentifier":"BANKNIFTY25MAR21FUT",
"LastTradeTime":1592992800,
"BuyPrice":21385.05,
"Close":0.0,
"LastTradePrice":21385.05,
"SellPrice":21389.3,
"MessageType":"LastQuoteShortWithCloseResult"},
{"Exchange":"NFO",
"InstrumentIdentifier":"RELIANCE25MAR21FUT",
"LastTradeTime":1592992799,
"BuyPrice":1734.0,
"Close":0.0,
"LastTradePrice":1734.9,
"SellPrice":1735.0,
"MessageType":"LastQuoteShortWithCloseResult"}],
"MessageType":"LastQuoteArrayShortWithCloseResult"}

Was this helpful?