class FxRate implements FxRateProvider, ImmutableBean, Serializable {

  public static FxRate of(Currency base, Currency counter, double rate) {
    return new FxRate(CurrencyPair.of(base, counter), rate);
  }

  private  FxRate(
      CurrencyPair pair,
      double rate);

}