you need to buy a stock three days before the record date in order to qualify for the dividend
Brokers and Market Makers
As discussed above, many brokers are just trading facilitators. They don’t take a position opposite to your orders. Market makers do take the opposite side of a trade and may act as a buyer if you are a seller or vice versa.