Firms engaged in importing and exporting conduct forex transactions to pay for goods and services. Consider the example of a German solar panel producer that imports American components and sells its finished products in China. After the final sale is made, the Chinese yuan the producer received must be converted back to euros. The German firm must then exchange euros for dollars to purchase more American components.
Companies trade forex to hedge the risk associated with foreign currency translations. The same German firm might purchase American dollars in the spot market, or enter into a currency swap agreement to obtain dollars in advance of purchasing components from the American company in order to reduce foreign currency exposure risk.
Additionally, hedging against currency risk can add a level of safety to offshore investments.