GetMarketMessages : Returns array of last messages (Market Messages) related to selected exchange
What is returned ?
Market Messages as received from the Exchange |
Supported parameters
Exchange | String value like MCX | Name of supported exchange. How to get list of supported exchanges you can find here |
Sample request(JavaScript)
{ MessageType: "GetMarketMessages", Exchange: "NFO", }; var message = JSON.stringify(request); websocket.send(message);
Example of returned data in JSON format
{ "Request":{ "Exchange":"NFO", "MessageType":"GetMarketMessages" }, "Result":[ {"ServerTime":1391822398,"SessionID":2,"MarketType":"Normal Market Close","MessageType":"MarketMessagesItemResult"},
{“ServerTime”:1391822399,”SessionID”:1,”MarketType”:”Special Session Open”,”MessageType”:”MarketMessagesItemResult”} ], “MessageType”:”MarketMessagesResult” }