Skip to content

Commit

Permalink
public dry fun message
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonDane committed Nov 23, 2024
1 parent 5b40f4c commit 608515d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion publicAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 608515d

Please sign in to comment.