Add debugging information

This commit is contained in:
Mark Veidemanis 2023-08-24 17:47:02 +00:00
parent a68ade9efe
commit 542dca8324
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,6 @@ def update_customer_fields(user):
name = expand_name(user.first_name, user.last_name) name = expand_name(user.first_name, user.last_name)
stripe.Customer.modify(user.stripe_id, name=name) stripe.Customer.modify(user.stripe_id, name=name)
def create_or_update_customer(user): def create_or_update_customer(user):
""" """
Create or update a customer in Lago. Create or update a customer in Lago.

View File

@ -377,8 +377,10 @@ def execute_strategy(callback, strategy, func):
within_trends = checks.within_trends(strategy, symbol, direction) within_trends = checks.within_trends(strategy, symbol, direction)
if not within_trends: if not within_trends:
return return
print("Checked trends")
type = strategy.order_settings.order_type type = strategy.order_settings.order_type
print("Set order type")
# Get the account's balance in the native account currency # Get the account's balance in the native account currency
cash_balance = strategy.account.client.get_balance() cash_balance = strategy.account.client.get_balance()