You don't pay anything to the government for operations within the brokerage, but if you withdraw large amounts in BRL to a bank account, you will have to declare it.