Which of the following best describes the primary function of the stock market?
A) To facilitate the exchange of goods and services between countries
B) To provide a platform for buying and selling ownership shares in companies
C) To offer loans and financial aid to businesses
D) To regulate the national currency and monetary policy