Back to Community
Dividends Ex-Date

I want my algorithm to avoid trading a stock on the Ex-Dividend Date (maybe a day before too) due to the increased volatility, how can I obtain the ex-div date from announced by the company from the fundamental data of the company ?

Thanks,