Dividends are entered according to the ex-dividend date. If
the ex-dividend date is 30.06.2020, then the dividend should
be entered for the positions being held at close of business
on 29.11.2023 (dividend should be entered on 30.11.2023).
The calculation is Position size*Dividend amount which means
if the client is going short, the dividend should be minus
(we should deduct from the client) and if the client is
going long, then it should be plus (we should pay to the
client). As an example, let's say AAPLUS has a dividend
amount per share of 0.20 USD. If the client is holding a buy
position of 20 lots, they will receive 4 USD and if the
client is short of 20 lots, they will pay 4 USD.