From 542dca832428c9449c195d68dfe2868287edfc7d Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 24 Aug 2023 17:47:02 +0000 Subject: [PATCH] Add debugging information --- core/lib/billing.py | 1 - core/trading/market.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/lib/billing.py b/core/lib/billing.py index 45d4a2d..d5ebadd 100644 --- a/core/lib/billing.py +++ b/core/lib/billing.py @@ -67,7 +67,6 @@ def update_customer_fields(user): name = expand_name(user.first_name, user.last_name) stripe.Customer.modify(user.stripe_id, name=name) - def create_or_update_customer(user): """ Create or update a customer in Lago. diff --git a/core/trading/market.py b/core/trading/market.py index 2420edc..f1573ae 100644 --- a/core/trading/market.py +++ b/core/trading/market.py @@ -377,8 +377,10 @@ def execute_strategy(callback, strategy, func): within_trends = checks.within_trends(strategy, symbol, direction) if not within_trends: return + print("Checked trends") type = strategy.order_settings.order_type + print("Set order type") # Get the account's balance in the native account currency cash_balance = strategy.account.client.get_balance()