GetMarketMessages : Returns array of last messages (Market Messages) related to selected exchange
Supported parameters
accessKey | Access key according to your subscription | Required parameter. |
exchange | String value like MCX | Name of supported exchange. How to get list of supported exchanges you can find here |
xml | [true]/[false], default = [false] | Optional parameter. By default function will return JSON data. Functions will return XML data if set as [true] |
Example | http://endpoint:port/GetMarketMessages/?accessKey=0a0b0c&exchange=MCX&xml=true |
What is returned ?
Market Messages as received from the Exchange |
Example of returned data
JSON | XML |
{“EXCHANGE”: “MCX”,”MESSAGES”: [{ “SESSIONID”: 2, “MARKETTYPE”: “Normal Market Close”, “SERVERTIME”: 1391824800},{ “SESSIONID”: 1, “MARKETTYPE”: “Special Session Open”, “SERVERTIME”: 1391852700}]} |
<?xml version=”1.0″ encoding=”utf-16″ ?>
<MarketMessageHistory xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
Exchange=”MCX”>
<Value ServerTime=”2-8-2014 2:00:00 AM” SessionID=”2″ MarketType=”Normal Market Close”/>
<Value ServerTime=”2-8-2014 9:45:00 AM” SessionID=”1″ MarketType=”Special Session Open”/>
</MarketMessageHistory> |
CSV |
SessionID,MarketType,ServerTime
0,Normal Market Open,1713843900000
|