GetLastQuoteArrayShort

GetLastQuoteArrayShort : Returns LastTradePrice of multiple Symbols – max 25 in single call (short)

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), 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: "GetLastQuoteArrayShort",
Exchange: "NFO",
isShortIdentifiers: "true",
InstrumentIdentifiers:[{Value:"NIFTY26MAY26FUT"}, {Value:"BANKNIFTY26MAY26FUT"}, {Value:"RELIANCE26MAY26FUT"}],
};
doSend(request);
Example of returned data in JSON format
{"Result":[{
"Exchange":"NFO",
"InstrumentIdentifier":"NIFTY26MAY26FUT",
"LastTradeTime":1777888801,
"BuyPrice":24190.0,
"LastTradePrice":24199.0,
"SellPrice":24200.0,
"MessageType":"LastQuoteShortResult"},
{"Exchange":"NFO",
"InstrumentIdentifier":"BANKNIFTY26MAY26FUT",
"LastTradeTime":1777888799
,"BuyPrice":55100.0,
"LastTradePrice":55100.0,
"SellPrice":55130.0,
"MessageType":"LastQuoteShortResult"},
{"Exchange":"NFO",
"InstrumentIdentifier":"RELIANCE26MAY26FUT",
"LastTradeTime":1777888799,
"BuyPrice":1469.7,
"LastTradePrice":1469.7,
"SellPrice":1469.8,
"MessageType":"LastQuoteShortResult"}],
"MessageType":"LastQuoteArrayShortResult"}

Was this helpful?