Changed log ouput to debug in exchange.get_rate

This commit is contained in:
Sam Germain 2021-07-25 16:13:04 -06:00
parent b42afb9dae
commit 05f74bdf53

View File

@ -1037,14 +1037,11 @@ class Exchange:
f"determined. Orderbook: {order_book}" f"determined. Orderbook: {order_book}"
) )
raise PricingError from e raise PricingError from e
price_side = {conf_strategy['price_side'].capitalize()}
if side == "buy": logger.debug(f"{name} price from orderbook {price_side}"
price_side = {conf_strategy['price_side'].capitalize()} f"side - top {order_book_top} order book {side} rate {rate:.8f}")
logger.info(f"{name} price from orderbook {price_side}"
f"side - top {order_book_top} order book {side} rate {rate:.8f}")
else: else:
if side == "buy": logger.debug(f"Using Last {conf_strategy['price_side'].capitalize()} / Last Price")
logger.info(f"Using Last {conf_strategy['price_side'].capitalize()} / Last Price")
ticker = self.fetch_ticker(pair) ticker = self.fetch_ticker(pair)
ticker_rate = ticker[conf_strategy['price_side']] ticker_rate = ticker[conf_strategy['price_side']]
if ticker['last']: if ticker['last']: