GetLastQuote : Returns LastTradePrice of Single Symbol (detailed)

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]
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.
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.
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 : 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
{ “AVERAGETRADEDPRICE”: 871.68, “BUYPRICE”: 870.1, “BUYQTY”: 1, “CLOSE”: 870.9, “EXCHANGE”: “MCX”, “HIGH”: 875, “INSTRUMENTIDENTIFIER”: “XXX_MCXSCHANADLH_25Jun2015_XX_X”, “LASTTRADEPRICE”: 875, “LASTTRADEQTY”: 2, “LASTTRADETIME”: 1391863200, “LOW”: 868.1, “OPEN”: 871.2, “OPENINTEREST”: 221, “PREOPEN”: false, “QUOTATIONLOT”: 100, “SELLPRICE”: 874, “SELLQTY”: 1, “SERVERTIME”: 1391821719, “TOTALQTYTRADED”: 17, “VALUE”: 1481850}
<?xml version=”1.0″ encoding=”utf-16″ ?>


Exchange=”MCX” InstrumentIdentifier=”XXX_MCXSCHANADLH_25Jun2015_XX_X” LastTradeTime=”2-8-2014 12:40:00 PM” ServerTime=”2-8-2014 1:08:39 AM” AverageTradedPrice=”871.68″ BuyPrice=”870.1″ BuyQty=”1″ Close=”870.9″ High=”875″ Low=”868.1″ LastTradePrice=”875″ LastTradeQty=”2″ Open=”871.2″ OpenInterest=”221″ QuotationLot=”100″ SellPrice=”874″ SellQty=”1″ TotalQtyTraded=”17″ Value=”1481850″ PreOpen=”false”


CSVAverageTradedPrice,BuyPrice,BuyQty,Close,Exchange,High,InstrumentIdentifier,LastTradePrice,LastTradeQty,LastTradeTime,Low,Open,OpenInterest,PreOpen,QuotationLot,SellPrice,SellQty,ServerTime,TotalQtyTraded,Value,PriceChange,PriceChangePercentage,OpenInterestChange 47488.15,47180.1,30,47660.95,NFO,47953.85,BANKNIFTY-I,47180.1,450,1713434400000,47040,47750,1949265,False,15,47180.15,45,1713434400000,2747610,130478915821.5,-480.85,-1.01,118890

Was this helpful?