Check equality with None instead of truthfulness
This commit is contained in:
parent
27de8090de
commit
f4ae8fbc5f
|
@ -311,9 +311,9 @@ def execute_strategy(callback, strategy, func):
|
|||
|
||||
# Get the precision for the symbol
|
||||
trade_precision, display_precision = get_precision(account, symbol)
|
||||
if not trade_precision or not display_precision:
|
||||
if trade_precision is None or display_precision is None:
|
||||
# sendmsg(user, f"Precision not found for {symbol}", title="Error")
|
||||
# log.error(f"Precision not found for {symbol}")
|
||||
log.error(f"Market precision not found for {symbol} from {account}")
|
||||
return
|
||||
|
||||
# Round the received price to the display precision
|
||||
|
|
Loading…
Reference in New Issue