5 use Exchanger\Exception\Exception as ExchangerException;
38 $rate = $this->swap->latest($baseCurrency->
getCode().
'/'.$counterCurrency->
getCode());
39 }
catch (ExchangerException $e) {
43 return new CurrencyPair($baseCurrency, $counterCurrency, $rate->getValue());