Skip to content

Commit db4410e

Browse files
committed
new: various new account descriptions
Fixes #27
1 parent f87072c commit db4410e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ws_api/wealthsimple_api.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,17 @@ def _account_add_description(account):
409409
account['description'] = "Crypto"
410410
elif account['unifiedAccountType'] == 'SELF_DIRECTED_RRIF':
411411
account['description'] = f"RRIF: self-directed"
412+
elif account['unifiedAccountType'] == 'SELF_DIRECTED_SPOUSAL_RRIF':
413+
account['description'] = f"RRIF: self-directed spousal"
412414
elif account['unifiedAccountType'] == 'CREDIT_CARD':
413415
account['description'] = "Credit card"
416+
elif account['unifiedAccountType'] == 'MANAGED_NON_REGISTERED':
417+
if any(feature['name'] == 'PRIVATE_CREDIT' for feature in account['accountFeatures']):
418+
account['description'] = "Non-registered: managed - private credit"
419+
if any(feature['name'] == 'PRIVATE_EQUITY' for feature in account['accountFeatures']):
420+
account['description'] = "Non-registered: managed - private equity"
421+
elif account['unifiedAccountType'] == 'SELF_DIRECTED_LIRA':
422+
account['description'] = f"LIRA: self-directed"
414423
# TODO: Add other types as needed
415424

416425
def get_account_balances(self, account_id):

0 commit comments

Comments
 (0)