Update exchange.py
Reduce the spamming the log file with the same messages a few times a second. Not sure what the original purpose was, so I just comment it out.
This commit is contained in:
parent
f870c0099b
commit
b1fbf7f905
@ -1038,10 +1038,10 @@ class Exchange:
|
|||||||
)
|
)
|
||||||
raise PricingError from e
|
raise PricingError from e
|
||||||
|
|
||||||
logger.info(f"{name} price from orderbook {conf_strategy['price_side'].capitalize()}"
|
#logger.info(f"{name} price from orderbook {conf_strategy['price_side'].capitalize()}"
|
||||||
f"side - top {order_book_top} order book {side} rate {rate:.8f}")
|
# f"side - top {order_book_top} order book {side} rate {rate:.8f}")
|
||||||
else:
|
else:
|
||||||
logger.info(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']:
|
||||||
|
Loading…
Reference in New Issue
Block a user