Skip to content

Commit

Permalink
Merge branch 'main' into develop-vanguard
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonDane committed Jun 4, 2024
2 parents 1b9081c + 61900ed commit 6faa650
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 @@ -3,6 +3,7 @@

import os
import traceback
from time import sleep

from dotenv import load_dotenv
from webull import webull
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 6faa650

Please sign in to comment.