StreamAllSymbols

No additional function is required to be enabled for this functionality Only the Authentication need to be done . It will send Realtime data of all symbols of those exchanges which are enabled for that API key.

Authenticate : Authenticates the user

What is returned ?
Nothing. This function authenticates the user and sends response accordingly
Sample Request (JavaScript)
 function Authenticate()
  {
     writeToScreen("Authenticate");
    var message = 
    {
       MessageType: "Authenticate",
       Password: accessKey
     };
    doSend(message);
  }
JSON Response
{"Complete":true,"Message":"Welcome!","MessageType":"AuthenticateResult"}"
What is returned ?
Exchange, InstrumentIdentifier (Symbol), LastTradeTime, ServerTime, AverageTradedPrice (VWAP), Close (previous Day’s Close), Open(Day’s Open), High(Day’s High), Low(Day’s 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, ServerTradeTime : These values are 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 in JSON format for exchanges which are enabled
Response: {"T":"Batch", "data":[{"E":"NSE_IDX","I":"NIFTY 50","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":25250.1,"H":25485.05,"L":24984.85,"LTP":24998.4,"LTQ":0,"O":25181.9,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-251.7,"PCP":-1,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"NIFTY ALPHA 50","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":58848.15,"H":59264.5,"L":57478.7,"LTP":58446.9,"LTQ":0,"O":58765.1,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-401.25,"PCP":-0.68,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"NIFTY ALPHALOWVOL","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":30537.05,"H":30786.7,"L":30194.85,"LTP":30215.5,"LTQ":0,"O":30481.55,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-321.55,"PCP":-1.05,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"NIFTY INDIA MFG","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":15307.45,"H":15385.8,"L":15079.65,"LTP":15130.9,"LTQ":0,"O":15284.25,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-176.55,"PCP":-1.15,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"INDEX1 NSETEST","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":21538.45,"H":22043.95,"L":21648.35,"LTP":21978,"LTQ":0,"O":21648.35,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":0,"PCP":0,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"NIFTY100 EQL WGT","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":34631.05,"H":34818.1,"L":34173.45,"LTP":34246.25,"LTQ":0,"O":34566.15,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-384.8,"PCP":-1.11,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"NIFTY100 ESG","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":5075,"H":5119.75,"L":5020.9,"LTP":5025.35,"LTQ":0,"O":5064.65,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-49.65,"PCP":-0.98,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"NIFTY M150 QLTY50","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":25663.9,"H":25762.9,"L":25292.1,"LTP":25372,"LTQ":0,"O":25648.85,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-291.9,"PCP":-1.14,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"NIFTY200 QUALTY30","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":22946.4,"H":23074.65,"L":22633.4,"LTP":22654.9,"LTQ":0,"O":22882.3,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-291.5,"PCP":-1.27,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"NIFTY100 QUALTY30","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":6157.95,"H":6195.65,"L":6079.95,"LTP":6084.35,"LTQ":0,"O":6139.65,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-73.6,"PCP":-1.2,"OIC":0,"T":"RT"},{"E":"NSE_IDX","I":"NIFTY FINSRV25 50","LTT":1728034140,"STT":1728034140,"ATP":0,"BP":0,"BQ":0,"C":26377.65,"H":26549.5,"L":26037.55,"LTP":26057.4,"LTQ":0,"O":26308.85,"OI":0,"QL":0,"SP":0,"SQ":0,"TTQ":0,"VAL":0,"PO":false,"PC":-320.25,"PCP":-1.21,"OIC":0,"T":"RT"}]}

++ multiple line of traded symbols in batch wise format like above .

Expansion on returns:-

E - Exchange , I - InstrumentIdentifier ,LTT - LastTradeTime , STT - ServerTime , ATP - AverageTradedPrice ,C- Close ,O- Open ,H- High ,L -Low, LTP- LastTradePrice,LTQ- LastTradeQty ,TTQ- TotalQtyTraded, BP- BuyPrice,BQ-BuyQty,SP- SellPrice ,SQ- SellQty,OI-OpenInterest,QL-QuotationLot,VAL-Value,PO-PreOpen,PC-PriceChange,PCP-PriceChangePercentage,OIC-OpenInterestChange, T- MessageType

Was this helpful?