A stock exchange is a regulated marketplace where buyers and sellers come together to trade securities, primarily stocks and other…