The foreign exchange market is a global decentralized or over-the-counter market for the trading of currencies. This market determines the foreign exchange rate. It includes all aspects of buying, selling and exchanging currencies at current or determined prices.
The stock market refers to the collection of markets and exchanges where regular activities of buying, selling, and issuance of shares of publicly-held companies take place. Such financial activities are conducted through institutionalized formal exchanges.