Skip to content

Commit

Permalink
wb sleep during dance
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonDane committed Jun 4, 2024
1 parent fb575e9 commit 07d7ba0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webullAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import traceback

from dotenv import load_dotenv
from time import sleep
from webull import webull

from helperAPI import Brokerage, maskString, printAndDiscord, printHoldings, stockOrder
Expand Down Expand Up @@ -176,6 +177,7 @@ def webull_transaction(wbo: Brokerage, orderObj: stockOrder, loop=None):
raise Exception(f"Error buying {big_amount} of {s}")
orderObj.set_amount(big_amount - old_amount)
orderObj.set_action("sell")
sleep(1)
order = place_order(obj, internal_account, orderObj, s)
if not order:
raise Exception(
Expand Down

0 comments on commit 07d7ba0

Please sign in to comment.