Skip to content

Commit 6f4c938

Browse files
authored
Merge pull request #514 from MaxxRK/new_features
fix vg sells and wells not closing
2 parents 0250325 + 332668b commit 6f4c938

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

vanguardAPI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def vanguard_transaction(vanguard_o: Brokerage, orderObj: stockOrder, loop=None)
173173
else:
174174
order_type = order.OrderSide.SELL
175175
# Check if dance is needed
176-
if int(orderObj.get_amount()) == 1:
176+
if int(orderObj.get_amount()) == 1 and orderObj.get_action() == "buy":
177177
transaction_length = 2
178178
else:
179179
transaction_length = 1

wellsfargoAPI.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,3 +478,4 @@ def wellsfargo_transaction(WELLSFARGO_o: Brokerage, orderObj: stockOrder, loop=N
478478
WebDriverWait(driver, 3).until(
479479
EC.element_to_be_clickable((By.CSS_SELECTOR, "#btn-continue"))
480480
).click()
481+
killSeleniumDriver(WELLSFARGO_o)

0 commit comments

Comments
 (0)