From 608515d9110f815a6fd44f3a7f9800c0a3fd6df3 Mon Sep 17 00:00:00 2001 From: Nelson Dane <47427072+NelsonDane@users.noreply.github.com> Date: Fri, 22 Nov 2024 23:26:48 -0500 Subject: [PATCH] public dry fun message --- publicAPI.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/publicAPI.py b/publicAPI.py index c2799bc6..fc48c731 100644 --- a/publicAPI.py +++ b/publicAPI.py @@ -135,8 +135,11 @@ def public_transaction(pbo: Brokerage, orderObj: stockOrder, loop=None): ) if order["success"] is True: order = "Success" + dry_message = "" + if orderObj.get_dry(): + dry_message = "DRY RUN: " printAndDiscord( - f"{key}: {orderObj.get_action()} {orderObj.get_amount()} of {s} in {print_account}: {order}", + f"{dry_message}{orderObj.get_action()} {orderObj.get_amount()} of {s} in {print_account}: {order}", loop, ) except Exception as e: