GetTopGainersLosers

GetTopGainersLosers : Returns data of top N gainers and losers for requested underlying

Supported parameters

ExchangeString value like NFOName of supported exchange. How to get list of supported exchanges you can find here
CountValue like 5, 10, 15, 20.Mandatory parameter. Supported values: 5, 10, 15, 20 ,to receive count of Top N of Gainers and Top N of Losers
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
Examplehttps://endpoint:port/GetTopGainersLosers/?accessKey=a0b0c0&exchange=NSE&count=5&xml=true

What is returned ?

Exchange, InstrumentIdentifier (Symbol), LastTradeTime, ServerTime, AverageTradedPrice, BuyPrice, BuyQty, Open, High, Low, Close, LastTradePrice, LastTradeQty, OpenInterest, QuotationLot, SellPrice, SellQty, TotalQtyTraded, Value, PreOpen, PriceChange, PriceChangePercentage, OpenInterestChange, MessageType
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)

Example of returned data

JSONDownload Sample Response in JSON
CSVDownload Sample Response in CSV
XMLDownload Sample Response in XML

Was this helpful?