fidelity-api 0.0.6__tar.gz → 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fidelity-api
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: An unofficial API for Fidelity
5
5
  Home-page: https://github.com/kennyboy106/fidelity-api
6
6
  Author: Kenneth Tang
@@ -8,6 +8,9 @@ License: GPL
8
8
  Keywords: FIDELITY,API
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
+ Requires-Dist: playwright
12
+ Requires-Dist: playwright-stealth
13
+ Requires-Dist: pyotp
11
14
 
12
15
  <a id="readme-top"></a>
13
16
  # fidelity-api
@@ -277,7 +277,8 @@ class FidelityAutomation:
277
277
  # This double wait is necessary. If you remove it, I'll kill you
278
278
  self.wait_for_loading_sign()
279
279
  self.page.wait_for_timeout(1000)
280
- self.wait_for_loading_sign()
280
+ # Sometimes this can take a while to load. Set to 2.5 minutes
281
+ self.wait_for_loading_sign(timeout=2.5*60*1000)
281
282
 
282
283
  # Download the positions as a csv #
283
284
  # See if new UI is present
@@ -998,8 +999,12 @@ class FidelityAutomation:
998
999
  self.wait_for_loading_sign()
999
1000
 
1000
1001
  # If application is already started, then there will only be 1 "Next" button
1001
- self.page.get_by_role("button", name="Next").click()
1002
- self.wait_for_loading_sign()
1002
+ # Rarely there will be no "Next" button
1003
+ try:
1004
+ self.page.get_by_role("button", name="Next").click(timeout=15000)
1005
+ self.wait_for_loading_sign()
1006
+ except:
1007
+ pass
1003
1008
 
1004
1009
  # Open account
1005
1010
  self.page.get_by_role("button", name="Open account").click()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fidelity-api
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: An unofficial API for Fidelity
5
5
  Home-page: https://github.com/kennyboy106/fidelity-api
6
6
  Author: Kenneth Tang
@@ -8,6 +8,9 @@ License: GPL
8
8
  Keywords: FIDELITY,API
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
+ Requires-Dist: playwright
12
+ Requires-Dist: playwright-stealth
13
+ Requires-Dist: pyotp
11
14
 
12
15
  <a id="readme-top"></a>
13
16
  # fidelity-api
@@ -5,7 +5,7 @@ with open("README.md", "r") as f:
5
5
 
6
6
  setup(
7
7
  name="fidelity-api",
8
- version="0.0.6",
8
+ version="0.0.8",
9
9
  author="Kenneth Tang",
10
10
  description="An unofficial API for Fidelity",
11
11
  long_description=long_description,
File without changes
File without changes
File without changes