Need help
681 Points
Joined November 2021
It will be the date of the actual buy/sell transaction.
Your gain was realised when the trade occurred, regardless of the settlement date (and regardless of whether or not an eventual settlement was completed).
Gain calculations are based on transaction, not payment.