On the Subject of Foreign Exchange Rates

If bombs were stock brokers...

Defusing this module requires the expert to have a device that can connect to the World Wide Web.

This module has the ability to connect to the internet and query the state of foreign exchange rates. There should be a three times three grid of keys, each with a light emitting diode. DO NOT PRESS ANY KEY ON THIS MODULE WHILE THE LIGHT EMITTING DIODES ARE FLASHING IN SEQUENCE.

The keys are grouped by rows:

Top row: ISO 4217 alphabetic code for the base currency.[1][2]
Middle row: ISO 4217 alphabetic code for the target currency.[1][2]
Bottom row: Value of currency to convert.

All light emitting diodes have turned green:

Enter the following uniform resource locator into your internet capable device:
https://fer.eltrick.uk/latest?base=XXX&symbols=YYY
Replace XXX with the ISO 4217 alphabetic code for the base currency.
Replace YYY with the ISO 4217 alphabetic code for the target currency.
You will receive data in a Javascript object notation format, look for {"YYY": NUMBER}, where NUMBER will be the exchange rate. Using the exchange rate, convert the number in the bottom row to the target currency, round that number down and take note of the 2nd digit from the left[4]. Press the Nth key where N is the noted number (count keys from left to right, top to bottom)[5].

All light emitting diodes have turned red:

In this case the module failed to query today’s currency rates. Get the ISO 4217 numeric code for the target currency’s country and take note the 2nd digit from the right. Press the Nth key where N is the noted number (count keys from left to right, top to bottom)[5].

[1]: If there is more than one battery on the bomb, the base currency code and target currency code is swapped.
[2]: This may instead be the ISO 4217 numeric code.
[3]: Note the currency rates are updated at exactly midnight UTC.
[4]: In the case the converted currency is less than 10, the noted number is 0.
[5]: In the case the noted number is 0, press the top left key.

Appendix CURRENCY: ISO 4217 Currency Codes

CodeNumCurrency Name
AUD036Australian dollar
BGN975Bulgarian lev
(until 2025)
BRL986Brazilian real
CAD124Canadian dollar
CHF756Swiss franc
CNY156Renminbi
DKK208Danish krone
EUR978Euro
GBP826Pound sterling
HKD344Hong Kong dollar
HRK191Croatian kuna
(until 2023)
HUF348Hungarian forint
IDR360Indonesian rupiah
ILS376Israeli new shekel
INR356Indian rupee
CodeNumCurrency Name
JPY392Japanese yen
KRW410South Korean won
MXN484Mexican peso
MYR458Malaysian ringgit
NOK578Norwegian krone
NZD554New Zealand dollar
PHP608Philippine peso
PLN985Polish złoty
RON946Romanian leu
RUB643Russian ruble
SEK752Swedish krona
SGD702Singapore dollar
THB764Thai baht
TRY949Turkish lira
USD840United States dollar
ZAR710South African rand