The New York Stock Exchange was established in 1792 when 24 brokers and lenders signed an agreement to trade securities exclusively among themselves, set trading fees, and avoid auctions outside of their group.