Skip to content

Commit

Permalink
Merge pull request #447 from NelsonDane/deepsource-transform-481d4169
Browse files Browse the repository at this point in the history
style: format code with Black and isort
  • Loading branch information
NelsonDane authored Dec 1, 2024
2 parents 1e33029 + 2293cc1 commit 1d47b19
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions firstradeAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ def firstrade_transaction(firstrade_o: Brokerage, orderObj: stockOrder, loop=Non
price=price,
dry_run=orderObj.get_dry(),
)
print("The buy order verification produced the following messages: ")
print(
"The buy order verification produced the following messages: "
)
pprint.pprint(order_conf)
buy_success = order_conf["error"] == ""
printAndDiscord(
Expand Down Expand Up @@ -212,7 +214,9 @@ def firstrade_transaction(firstrade_o: Brokerage, orderObj: stockOrder, loop=Non
price=price,
dry_run=orderObj.get_dry(),
)
print("The sell order verification produced the following messages: ")
print(
"The sell order verification produced the following messages: "
)
pprint.pprint(order_conf)
sell_success = order_conf["error"] == ""
printAndDiscord(
Expand All @@ -229,7 +233,9 @@ def firstrade_transaction(firstrade_o: Brokerage, orderObj: stockOrder, loop=Non
f"{key} account {print_account}: The order verification produced the following messages: {order_conf}",
loop,
)
raise Exception(f"Error selling {quantity - old_amount} of {s}")
raise Exception(
f"Error selling {quantity - old_amount} of {s}"
)
else:
# Normal buy/sell
ft_order = order.Order(obj)
Expand All @@ -243,7 +249,9 @@ def firstrade_transaction(firstrade_o: Brokerage, orderObj: stockOrder, loop=Non
price=price,
dry_run=orderObj.get_dry(),
)
print("The order verification produced the following messages: ")
print(
"The order verification produced the following messages: "
)
pprint.pprint(order_conf)
order_success = order_conf["error"] == ""
printAndDiscord(
Expand Down

0 comments on commit 1d47b19

Please sign in to comment.