def METHOD_NAME(
    self, currency_code: str, ib_config_for_code: ibFXConfig
) -> fxPrices:
    raw_fx_prices_as_series = self._get_raw_fx_prices(ib_config_for_code)
    log = self.log.setup(**{CURRENCY_CODE_LOG_LABEL: currency_code})
    if len(raw_fx_prices_as_series) == 0:
        log.warning(
            "No available IB prices for %s %s"
            % (currency_code, str(ib_config_for_code))
        )
        return fxPrices.create_empty()
    if ib_config_for_code.invert:
        raw_fx_prices = 1.0 / raw_fx_prices_as_series
    else:
        raw_fx_prices = raw_fx_prices_as_series
    # turn into a fxPrices
    fx_prices = fxPrices(raw_fx_prices)
    log.debug("Downloaded %d prices" % len(fx_prices))
    return fx_prices