SubscribeSnapshot (Delayed)

SubscribeSnapshot : Returns snapshot data as per Periodicity & Period values with delay.

Delay parameter is configured at our backend. Hence this function works exactly in same manner like SubscribeSnapshot. So the request syntax and fields in response remain exactly same like SubscribeSnapshot. Only difference is that the data is delayed which will be visible only from the trade timestamp received in the response (field : LastTradeTime) and comparing it with the current time.

Supported parameters

ExchangeString value like NFOName of supported exchange. How to get list of supported exchanges you can find here
InstrumentIdentifierString value of instrument identifierHow to get list of available instruments and identifiers you can find here
Periodicity[“MINUTE”]/[“HOUR”]String value of required periodicity.
Period1,2,5,10,15,30 default = 1Numerical value of required Period.
Unsubscribe[true]/[false], default = [false]Optional parameter. Buy default subscribes to Realtime data. If [true] instrumentIdentifier is unsubscribed
What is returned ?
Exchange, InstrumentIdentifier (Symbol), Periodicity, Period, LastTradeTime, Open, High, Low, Close, TradedQty, OpenInterest
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)
Sample request(JavaScript)
{
MessageType: "SubscribeSnapshot",
Exchange: "NFO",
InstrumentIdentifier: "NIFTY-I",
Periodicity: "MINUTE",
Period: 1
};
var message = JSON.stringify(request);
websocket.send(message);
Example of returned data in JSON format. This data returned as per Periodicity & Period values
Note: 
For example: If the API key is configured with a 15-minute delay for NFO.
Request sent at September 13, 2024  11:40:00 (IST)
Response received at
11:41:01 - Last Trade Time (IST): September 13, 2024 11:26:00 AM
11:42:01 - Last Trade Time (IST): September 13, 2024 11:27:00 AM
RESPONSE: {"Exchange":"NFO", 
"InstrumentIdentifier":"NIFTY-I",
"Periodicity":"MINUTE",
"Period":1,
"LastTradeTime":1726206960,
"TradedQty":10450,
"OpenInterest":14626675,
"Open":25391.75,
"High":25392.5,
"Low":25386.0,
"Close":25386.2,
"MessageType":"RealtimeSnapshotResult"}

RESPONSE: {"Exchange":"NFO",
"InstrumentIdentifier":"NIFTY-I",
"Periodicity":"MINUTE",
"Period":1,
"LastTradeTime":1726207020,
"TradedQty":13475,
"OpenInterest":14636550,
"Open":25386.25,
"High":25388.4,
"Low":25378.5,
"Close":25380.0,
"MessageType":"RealtimeSnapshotResult"}

Was this helpful?