afex, market will automatically reduce the divvi amount from the last trading price. sell out the day before ex-div is the best way to do divi trade than hold on to it.