I don’t know the answer to your tax inquiry, but some brokers, like eToro, automatically generate annual tax reports based on the tax laws and regulations of your tax country of residence.
I hope that helps.