The foreign exchange market, also known as forex, is a global financial market that facilitates the trading of currencies. It…