As per the Canada Revenue Agency (CRA), you are not allowed to deduct any expenses to the Proceeds of disposition/settlement amount. However, in Box 20 - Cost or Book value, you may add the expenses associated to buying/selling the security.
For more information, please see the following links from the Canada Revenue Agency (CRA):
Box 20 - Cost or Book Value
Box 21 - Proceeds of Disposition
Thank you for choosing TurboTax.