code: def convert(self, amount: Number, currency: str, to: str, reverse: bool=False) -> Number:
          
          rate = self.get_rate_for(currency, to, reverse)
          if self.return_decimal:
              amount = Decimal(amount)
          return amount * rate
docs: Convert amount to another currency