GetExchangeMessages

GetExchangeMessages : Returns array of last messages (Exchange 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/GetExchangeMessages/?accessKey=0a0b0c&exchange=MCX&xml=true

 

What is returned ?
Exchange Messages as received from the Exchange

 

Example of returned data

 

JSON XML
{“EXCHANGE”: “MCX”,”MESSAGES”: [{ “IDENTIFIER”: “Market”, “SERVERTIME”: 1391822398, “MESSAGE”: “Members are requested to note that …”},{ “IDENTIFIER”: “Market”, “SERVERTIME”: 1391822399, “MESSAGE”: “2013 shall be levied subsequently.”}]}
<?xml version=”1.0″ encoding=”utf-16″ ?>

<ExchangeMessageHistory

xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
Exchange=”MCX”>
<Value ServerTime=”2-8-2014 1:19:58 AM” Identifier=”Market”>

<Message>

<![CDATA[ Members are requested to note that … ]]>

</Message>

</Value>

<Value ServerTime=”2-8-2014 1:19:59 AM” Identifier=”Market”>

<Message>

<![CDATA[ 2013 shall be levied subsequently. ]]>

</Message>

</Value>

</ExchangeMessageHistory>

Was this helpful?