Skip to content

Commit

Permalink
fix tradier holdings
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonDane committed Jan 4, 2024
1 parent 157dd30 commit 7d3f752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tradierAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def tradier_holdings(tradier_o: Brokerage, loop=None):
)
if (
price_response is None
or price_response.get("quotes").get("quote").get("last") is None
or price_response["quotes"].get("quote") is None
or price_response["quotes"]["quote"].get("last") is None
):
current_price.append(0)
else:
Expand Down

0 comments on commit 7d3f752

Please sign in to comment.