Skip to content

Commit

Permalink
Fixed minor display error in day pnl example (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpflouret authored Aug 9, 2021
1 parent 2a86657 commit c28fae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fetch_questrade_day_pnl.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def print_accounts_pnl(qt: iq.QuestradeIQ) -> None:

total_pnl = {iq.Currency.CAD: 0.0, iq.Currency.USD: 0.0}
for account, positions in zip(accounts, account_positions):
print(account.number, account.type)
print(account.number, account.type.name)
day_pnl = {iq.Currency.CAD: 0.0, iq.Currency.USD: 0.0}
for position in sorted(positions):
ticker = ticker_map[position.ticker]
Expand Down

0 comments on commit c28fae6

Please # to comment.