I have developed trading algorithm in python which trades every week days but gets terminated/fails on national holiday. Can I holiday details through api like holidays of current year/month or if today is holiday or not so that I can keep such condition in my program and avoid it from getting terminated.
Can I holiday details through api like holidays of current year/month
No, currently we don't have any holiday calendar APIs as such. But, these holidays are easy to maintain at your end as it's fixed and is released at the start of the year on NSE portal. Something like:
It is fixed for the year but changes after a year. We make script and deploy on cloud, script keeps running. Once we deploy it or give to client then we do not edit it.