The question raised by Andre (GL, Bank, consolidation, etc.) is important.
For example, if you are performing consolidation using Management Reporter, you can define to use average exchange rate.
That setting is setup in main account > Currency translation methods.
Other processes use Exchange Rate in Ledger