StreamAllSnapshots

StreamAllSnapshots – No additional function is required to be enabled for this functionality. It will send Realtime Snapshot data of all symbols with respective to the Exchange, Periodicity and Period, which are enabled for the 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), Periodicity , Period, LastTradeTime, TradedQuantity, OpenInterest, Open(Day’s Open), High(Day’s High), Low(Day’s Low),Close (previous 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: {"Exchange":"MCX","Periodicity":"MINUTE","Period":1,"Result":[{"InstrumentIdentifier":"FUTCOM_CRUDEOIL_19NOV2024__0",
"LastTradeTime":1729683720,
"TradedQty":61,
"OpenInterest":14564,
"Open":5934.0,
"High":5936.0,
"Low":5934.0,
"Close":5935.0},
.
.
.
{"InstrumentIdentifier":"OPTFUT_NATURALGAS_24OCT2024_CE_190",
"LastTradeTime":1729683720,
"TradedQty":141,
"OpenInterest":10085,
"Open":4.95,
"High":5.05,
"Low":4.9,
"Close":5.05}],
"MessageType":"RealtimeSnapshotCollection"}

++ multiple line of traded symbols 

Was this helpful?