Skip to content

Commit

Permalink
Merge pull request #430 from NelsonDane/dependabot/pip/public-invest-…
Browse files Browse the repository at this point in the history
…api-1.1.0

Bump public-invest-api from 1.0.4 to 1.1.0
  • Loading branch information
NelsonDane authored Nov 6, 2024
2 parents 364f830 + 88a4bf0 commit f299dd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions publicAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
maskString,
printAndDiscord,
printHoldings,
stockOrder
stockOrder,
)


Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f299dd6

Please sign in to comment.