Skip to content

Commit

Permalink
Fix Tornado page not fully loading
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew55 committed Sep 5, 2024
1 parent 6c30fc0 commit 16890c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tornadoAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def tornado_transaction(Tornado_o: Brokerage, orderObj: stockOrder, loop=None):
)

print("Completed all transactions, Exiting...")
killSeleniumDriver(driver)
killSeleniumDriver(Tornado_o)


def handle_buy(driver, stock, orderObj, loop):
Expand Down Expand Up @@ -370,6 +370,7 @@ def handle_buy(driver, stock, orderObj, loop):
return

try:
sleep(3)
buy_power = driver.find_element(By.XPATH, buy_power_xpath).text.strip()
cost = driver.find_element(By.XPATH, current_price_xpath).text.strip()

Expand Down

0 comments on commit 16890c3

Please sign in to comment.