How to programmatically check whether a currency is allowed and has an exchange rate to the base currency?

See also: