The legal system for transactions in the stock exchange