GetHolidays : Returns an array of holidays related to the selected exchange.
Supported parameters
| Exchange | String value like MCX | Optional parameter . Name of supported exchange. How to get list of supported exchanges you can find here |
| From | Numerical value of UNIX Timestamp like ‘1388534400’ (01-01-2014 0:0:0) | Optional parameter by default it will return the holidays from 2010 .It means starting timestamp for call the holidays. This value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit Epoch Converter to get formulae to convert human readable time to Epoch and vice versa (scroll to end of their home page) |
| To | Numerical value of UNIX Timestamp like ‘1412121600’ (10-01-2014 0:0:0) | Optional parameter by default it will return the holidays from 2010.It means ending timestamp call the holidays. This value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit Epoch Converter to get formulae to convert human readable time to Epoch and vice versa (scroll to end of their home page) |
What is returned ?
| Holidays received from the Exchanges |
Sample request(JavaScript)
{
MessageType: "GetHolidays",
From:1735669800,
To:1767119400
};
var message = JSON.stringify(request);
websocket.send(message);
Example of returned data in JSON format
{
"Request":{
"Exchange":null,
"From":1764527400,
"To":1767033000,
"MessageType":"GetHolidays"
},
"Result":[{"Date":1766601000,"Description":"Christmas",
"Exchanges":"MCX;NSE;NSE_IDX;NFO;CDS;BSE;BSE_IDX;BSE_DEBT;BFO;NCX","MessageType":null}],
"MessageType":"HolidaysResult"}

