Skip to content

Commit

Permalink
Merge branch 'main' into develop-fidelity
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonDane committed Oct 7, 2024
2 parents 125aa7d + 5d8f451 commit 6bacc67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fidelityAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def getAccountInfo(self):
# Get the last price
last_price = str(row["Last Price"]).replace("$", "")
# Get quantity
quantity = row["Quantity"]
quantity = str(row["Quantity"]).replace("-", "")
# Get ticker
ticker = str(row["Symbol"])

Expand All @@ -335,9 +335,9 @@ def getAccountInfo(self):
# If the last price isn't available, just use the current value
if len(last_price) == 0:
last_price = val
# If the quantity is missing, just use 1
# If the quantity is missing skip it
if len(quantity) == 0:
quantity = 1
continue

# If the account number isn't populated yet, add it
if row["Account Number"] not in self.account_dict:
Expand Down
2 changes: 1 addition & 1 deletion wellsfargoAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def wellsfargo_init(botObj, WELLSFARGO_EXTERNAL=None, DOCKER=False, loop=None):
balance_element = account_block.find_element(
By.CSS_SELECTOR, '[data-testid$="-balance"]'
)
balance = float(balance_element.text.replace("$", ""))
balance = float(balance_element.text.replace("$", "").replace(",", ""))
WELLSFARGO_obj.set_account_totals(name, masked_number_text, balance)
except Exception as e:
wellsfargo_error(driver, e)
Expand Down

0 comments on commit 6bacc67

Please sign in to comment.