Send the user a more detailed precision error message

master
Mark Veidemanis 1 year ago
parent c915fd1e41
commit 68a33cea7d
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -238,7 +238,11 @@ def get_precision(account, symbol):
display_precision = instrument["displayPrecision"]
return (trade_precision, display_precision)
except KeyError:
# sendmsg(user, f"Precision not found for {symbol}", title="Error")
sendmsg(
account.user,
f"Precision not found for {symbol} from {instrument}",
title="Error",
)
log.error(f"Precision not found for {symbol} from {instrument}")
return (None, None)

Loading…
Cancel
Save