There they established some of Brazil's first financial institutions, such as its local stock exchanges, a National Bank, and ended the monopoly of the colony trade with Portugal, opening it to other nations.