GetHolidays

GetHolidays : Returns an array of holidays related to the selected exchange.

Supported parameters
accessKeyAccess key according to your subscriptionRequired parameter.
exchangeString value like MCXOptional parameter . Name of supported exchange. How to get list of supported exchanges you can find here
YearNumerical value like 2025Mandatory parameter. Specific year for data retrieval. Example: 2024
xml[true]/[false], default = [false]Optional parameter. By default function will return JSON data. Functions will return XML data if set as [true]
Examplehttp://endpoint:port/GetHolidays/?accessKey=0a0b0c&exchange=MCX&year=2025&xml=true
What is returned ?

Holidays received from the Exchanges

Example of returned data in JSON format
JSONXML
{ “Value”:[ {“Year”:2025,”Date”:”01-26-2025″,”Description”:”Republic Day”,”Exchanges”:”MCX;NSE;NSE_IDX;NFO;CDS;BSE;BSE_IDX;BSE_DEBT;BFO;NCX”},
]}
<Holiday>
<Value>
<HolidayItem Year=”2025″ Date=”01-26-2025″ Description=”Republic Day” Exchanges=”MCX;NSE;NSE_IDX;NFO;CDS;BSE;BSE_IDX;BSE_DEBT;BFO;NCX”/>
</Value>
</Holiday>
CSVYear,Date,Description,Exchanges
2025,”01-26-2025″,Republic Day,MCX;NSE;NSE_IDX;NFO;CDS;BSE;BSE_IDX;BSE_DEBT;BFO;NCX

Was this helpful?