From 7665dc18115635ebb0e669420e2ce9b494ee2a30 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 09:47:10 +0000 Subject: [PATCH 1/3] Bump public-invest-api from 1.0.4 to 1.1.0 Bumps [public-invest-api](https://github.com/NelsonDane/public-invest-api) from 1.0.4 to 1.1.0. - [Commits](https://github.com/NelsonDane/public-invest-api/commits) --- updated-dependencies: - dependency-name: public-invest-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7f70a230..471203f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ GitPython==3.1.43 nodriver==0.37 # playwright stealth from pypi seems abandoned -e git+https://github.com/MaxxRK/playwright_stealth.git@f87d7c3d67134ad6def356dce6545c2f42662dfb#egg=playwright_stealth -public-invest-api==1.0.4 +public-invest-api==1.1.0 pyotp==2.9.0 python-dotenv==1.0.1 requests==2.32.3 From 91c8ec0f38abd0fac5f6b45f6e2b768f0833670d Mon Sep 17 00:00:00 2001 From: Nelson Dane <47427072+NelsonDane@users.noreply.github.com> Date: Wed, 6 Nov 2024 09:34:32 -0500 Subject: [PATCH 2/3] fix current price --- publicAPI.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/publicAPI.py b/publicAPI.py index ce6b9022..61ac4455 100644 --- a/publicAPI.py +++ b/publicAPI.py @@ -97,8 +97,9 @@ def public_holdings(pbo: Brokerage, loop=None): # Get symbol, quantity, and total value sym = holding["instrument"]["symbol"] qty = float(holding["quantity"]) - current_price = obj.get_symbol_price(sym) - if current_price is None: + try: + current_price = obj.get_symbol_price(sym) + except Exception: current_price = "N/A" pbo.set_holdings(key, account, sym, qty, current_price) except Exception as e: From 88a4bf035f960aaf3fd3784b6ec5097e31549ae4 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:34:52 +0000 Subject: [PATCH 3/3] style: format code with Black and isort This commit fixes the style issues introduced in 91c8ec0 according to the output from Black and isort. Details: https://github.com/NelsonDane/auto-rsa/pull/430 --- publicAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publicAPI.py b/publicAPI.py index 61ac4455..c2799bc6 100644 --- a/publicAPI.py +++ b/publicAPI.py @@ -11,7 +11,7 @@ maskString, printAndDiscord, printHoldings, - stockOrder + stockOrder, )