Skip to content

Commit

Permalink
Merge pull request #439 from NelsonDane/deepsource-transform-119bdd09
Browse files Browse the repository at this point in the history
style: format code with Black and isort
  • Loading branch information
NelsonDane authored Nov 15, 2024
2 parents 5fc0550 + f837129 commit aeea20a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fidelityAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def fidelity_holdings(fidelity_o: Brokerage, name: str, loop=None):
"""

# Get the browser back from the fidelity object
fidelity_browser: fidelity.FidelityAutomation = fidelity_o.get_logged_in_objects(name)
fidelity_browser: fidelity.FidelityAutomation = fidelity_o.get_logged_in_objects(
name
)
account_dict = fidelity_browser.account_dict
for account_number in account_dict:

Expand Down Expand Up @@ -196,7 +198,9 @@ def fidelity_transaction(
"""

# Get the driver
fidelity_browser: fidelity.FidelityAutomation = fidelity_o.get_logged_in_objects(name)
fidelity_browser: fidelity.FidelityAutomation = fidelity_o.get_logged_in_objects(
name
)
# Get full list of accounts in case some had no holdings
fidelity_browser.get_list_of_accounts()
# Go trade
Expand Down

0 comments on commit aeea20a

Please sign in to comment.