SubscribeTopGainersLosers : Returns data of top N gainers and losers for requested underlying
Supported parameters
Exchange | String value like NFO | Name of supported exchange. How to get list of supported exchanges you can find here |
Count | Value 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 |
Series | String value like EQ | Optional parameter. User can filter the Gainers Losers by series filter. |
Unsubscribe | [true]/[false], default = [false] | Optional parameter. Buy default subscribes to Realtime data. If [true] Product is unsubscribed. |
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) |
function SubscribeTopGainersLosers()
{
var request =
{
MessageType: "SubscribeTopGainersLosers",
Exchange: "NFO",
Series:"EQ",
Count: 10,
//Unsubscribe: false
};
doSend(request);
}
Example of returned data in JSON format.