From 32021682963408a490f99c2861bdcbb95f850cb9 Mon Sep 17 00:00:00 2001 From: TheHolyRoger Date: Thu, 1 Apr 2021 17:11:52 +0100 Subject: [PATCH] XEMM: Remove redundant conversion rate check --- .../cross_exchange_market_making.pyx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hummingbot/strategy/cross_exchange_market_making/cross_exchange_market_making.pyx b/hummingbot/strategy/cross_exchange_market_making/cross_exchange_market_making.pyx index 88de032f42..7f56c692ec 100755 --- a/hummingbot/strategy/cross_exchange_market_making/cross_exchange_market_making.pyx +++ b/hummingbot/strategy/cross_exchange_market_making/cross_exchange_market_making.pyx @@ -1164,11 +1164,8 @@ cdef class CrossExchangeMarketMakingStrategy(StrategyBase): """ Return price conversion rate for a taker market (to convert it into maker base asset value) """ - if not self._use_oracle_conversion_rate: - return self._taker_to_maker_quote_conversion_rate / self._taker_to_maker_base_conversion_rate - else: - _, _, quote_rate, _, _, base_rate = self.get_taker_to_maker_conversion_rate() - return quote_rate / base_rate + _, _, quote_rate, _, _, base_rate = self.get_taker_to_maker_conversion_rate() + return quote_rate / base_rate # else: # market_pairs = list(self._market_pairs.values())[0] # quote_pair = f"{market_pairs.taker.quote_asset}-{market_pairs.maker.quote_asset}"