What is the purpose of capital markets?

A.
connecting lenders and borrowers
B.
exchanging currencies of different countries
C.
fixing the conversion rate from one currency to another
D.
connecting to traders who hold currencies of countries