If the account type is historical, you use the Jan 2022 historical rate on this transaction (if you have other additional transactions, you use the rate of the posting period for each transaction to get your grand total)
If the account type is current, you use the Oct 2022 current rate on the full balance of the account