From 31a77e88ad90281115f960d11f7f2f588a437e3d Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 29 Oct 2022 14:05:48 +0100 Subject: [PATCH] Remove some print statements --- core/lib/trades.py | 1 - core/views/__init__.py | 2 -- core/views/positions.py | 2 -- 3 files changed, 5 deletions(-) diff --git a/core/lib/trades.py b/core/lib/trades.py index 714ee58..7d03801 100644 --- a/core/lib/trades.py +++ b/core/lib/trades.py @@ -55,7 +55,6 @@ def post_trade(trade): log.error(f"Error placing limit order: {e}") return (False, e) - print("ORDER", order) else: raise Exception("Unknown trade type") trade.response = order diff --git a/core/views/__init__.py b/core/views/__init__.py index af60a19..9868cdc 100644 --- a/core/views/__init__.py +++ b/core/views/__init__.py @@ -48,7 +48,6 @@ class ObjectList(ListView): list_url_args = {} for arg in self.list_url_args: list_url_args[arg] = locals()[arg] - print("LIST URL ARGS", list_url_args) if type == "page": type = "modal" @@ -128,7 +127,6 @@ class ObjectCreate(CreateView): list_url_args = {} for arg in self.list_url_args: list_url_args[arg] = locals()[arg] - print("LIST URL ARGS", list_url_args) if type == "page": type = "modal" diff --git a/core/views/positions.py b/core/views/positions.py index f999beb..748b10a 100644 --- a/core/views/positions.py +++ b/core/views/positions.py @@ -18,7 +18,6 @@ def get_positions(user, account_id=None): accounts = Account.objects.filter(user=user) for account in accounts: positions = account.client.get_all_positions() - print("POSITIONS", positions) for item in positions: item = dict(item) @@ -79,7 +78,6 @@ class PositionAction(LoginRequiredMixin, View): account = Account.get_by_id(account_id, request.user) success, info = trades.get_position_info(account, asset_id) - print("INFO", info) if not success: message = "Position does not exist" message_class = "danger"