Foreign Exchange Rates

Look up the live exchange rate between two currencies and convert the stated amount.

### Next Released Module

[[Answering Questions]]

The Foreign Exchange Rates module requires the Expert to head to an external webpage and query the live exchange rates between two currencies, and convert an amount to the target currency. The Defuser then only needs to press one button: the button in the second-most significant digit's position, in reading order, of the converted currency.

## Manual Pages

* Original
* Optimized (Timwi)

## On the Subject of Foreign Exchange Rates

If bombs were stock brokers...

View Original
*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:

### ***All light emitting diodes have turned green:***

Enter the following uniform resource locator into your internet capable device:
http://api.exchangeratesapi.io/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 around 4PM CET.

[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.

## On the Subject of Foreign Exchange Rates

If bombs were stock brokers...

```
View Original

```

The top currency is the base, the middle one is the target.

**≥ 2 batteries:** swap base and target currency.

### ***If buttons are green:***

* Multiply by http://api.exchangeratesapi.io/latest?base=***base***&symbols=***target***.
* Round **down**.
* Press 2nd **most** significant digit (1 if zero).

 124
 156
 191
 208
 344
 348
 356

 376
 392
 410
 458
 484
 554
 578

 643
 702
 710
 752
 756
 764
 826

 946
 949
 975
 978
 985
 986

### ***If buttons are red:***

Lookup the target currency:

 BGN
 BRL
 CAD
 CHF
 CNY
 DKK
 EUR

 HKD
 HRK
 HUF
 IDR
 ILS
 INR
 JPY

 MXN
 MYR
 NOK
 NZD
 PHP
 PLN
 RON

 SEK
 SGD
 THB
 TRY
 USD
 ZAR

## Striking and Solving

The module will cause a strike if:

* an incorrect key is pressed.

The module will be disarmed when:

* the correct key is pressed.