class FxIndexObservation implements IndexObservation, ImmutableBean, Serializable {

  public static FxIndexObservation of(FxIndex index, LocalDate fixingDate, ReferenceData refData) {
    LocalDate maturityDate = index.calculateMaturityFromFixing(fixingDate, refData);
    return new FxIndexObservation(index, fixingDate, maturityDate);
  }

    FxIndexObservation(
      FxIndex index,
      LocalDate fixingDate,
      LocalDate maturityDate);

}