Skip to content

Commit

Permalink
Merge pull request #22 from terose73/patch-3
Browse files Browse the repository at this point in the history
Remove unnecessary sleeps.
  • Loading branch information
MaxxRK authored Jun 11, 2024
2 parents a82619a + f10f3bc commit fc3bd8e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vanguard/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,11 @@ def place_order(
"xpath=//label[text()='Sell']"
)
sell_btn.click()
sleep(1)
quantity_box = self.session.page.wait_for_selector(
"//input[@placeholder='Enter Shares']"
)
quantity_box.fill("")
quantity_box.type(str(quantity))
sleep(1)
if price_type == "MARKET":
self.session.page.wait_for_selector("//label[text()='Market']").click()
elif price_type == "LIMIT":
Expand Down

0 comments on commit fc3bd8e

Please sign in to comment.