''. As commercial activity expanded,
Pere Llobet built a porch (or
loggia) between 1352 and 1357 practically on the beach near the port, possibly on the location of a previous building used by merchants in what was called
plaça dels Canvis , and which had become the centre of maritime activity and adjacent to the Ribera, the most active commercial district in the city. In 1358, a chapel was added. This construction, which probably remained unfinished, soon became too small and around 1380
Peter the Ceremonious authorised the construction of a large enclosed hall (which still exists), which also protected the merchants from the inclemency of the weather and the effects of the sea.
Pere Arvei was the architect in charge of the works, which took place between 1384 and 1397. Although it was in operation by 1397, other constructions were added later, such as a courtyard and small chapel added between 1452 and 1453. Later the upper floor was built 1457–1459 under the direction of
Marc Safont as the seat of the
Consulate of the Sea. Over time, the function of the gothic building began to change. It was used as a wheat store, a setting for performances, as a weapon magazine and finally, following the
siege of 1714 it became a military barracks. One such performance was the first Italian opera performed in Spain, on August 2, 1708 of the first Italian opera in
Il più bel nome, by the Venetian composer
Antonio Caldara. It was performed on the occasion of the marriage of
Archduke Charles of Austria and the German princess
Elisabeth Christine of Brunswick. The opera was performed again in December 2008 on the 300th anniversary of the original. In 1767 the building was given to the
Royal Barcelona Board of Trade who decided to rebuild in the neoclassical style. The Board of Trade established many schools with the aim of supporting trade and industry. Among them was the Free School of Design in 1775, which gave rise to the
School of Arts and Crafts of Barcelona () and the
Reial Acadèmia Catalana de Belles Arts de Sant Jordi, which still uses the upper part to house an important art collection, especially from the 18th and 19th centuries, although the school is no longer located in this building. In 1915 the
Barcelona Stock Exchange was established in the Contracting Hall where it operated until 1994. The building is currently the seat of the
Cambra de Comerç and of the
Reial Acadèmia Catalana de Belles Arts de Sant Jordi. == The current building ==