Skip to content

Commit

Permalink
fix orders
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxrk committed Aug 19, 2024
1 parent 196a818 commit 6594d48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

setuptools.setup(
name="vanguard-api",
version="0.2.2",
version="0.2.3",
author="MaxxRK",
author_email="[email protected]",
description="An unofficial API for Vanguard Invest",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
url="https://github.com/MaxxRK/vanguard-api",
download_url="https://github.com/MaxxRK/vanguard-api/archive/refs/tags/v0.2.2.tar.gz",
download_url="https://github.com/MaxxRK/vanguard-api/archive/refs/tags/v0.2.3.tar.gz",
keywords=["VANGUARD", "API"],
install_requires=["playwright", "playwright-stealth"],
packages=["vanguard"],
Expand Down
10 changes: 2 additions & 8 deletions vanguard/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ def place_order(
quote_box.click()
quote_box.fill("")
quote_box.fill(symbol)
self.session.page.press(
"//input[@placeholder='Get Quote']",
"Enter",
)
self.session.page.keyboard.press("Tab")
for _ in range(3):
quote_price = self.session.page.wait_for_selector(
"(//div[@data-testid='txt-quote-value'])[2]", timeout=10000
Expand Down Expand Up @@ -340,10 +337,7 @@ def get_quote(self, symbol):
quote_box.click()
quote_box.fill("")
quote_box.fill(symbol)
self.session.page.press(
"//input[@placeholder='Get Quote']",
"Enter",
)
self.session.page.keyboard.press("Tab")
for _ in range(3):
quote_price = self.session.page.wait_for_selector(
"(//div[@data-testid='txt-quote-value'])[2]", timeout=10000
Expand Down

0 comments on commit 6594d48

Please sign in to comment.