Check equality with None instead of truthfulness

This commit is contained in:
Mark Veidemanis 2023-02-14 07:20:47 +00:00
parent 27de8090de
commit f4ae8fbc5f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 2 deletions

View File

@ -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