From 68a33cea7dcb0e7e6f8f6eb6395a718c65b61e18 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 14 Feb 2023 07:20:47 +0000 Subject: [PATCH] Send the user a more detailed precision error message --- core/trading/market.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/trading/market.py b/core/trading/market.py index 77cd3e5..08e5d24 100644 --- a/core/trading/market.py +++ b/core/trading/market.py @@ -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)