Skip to content

Commit 758725a

Browse files
committed
new: description for non-resident (US) tax
1 parent dc16992 commit 758725a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setuptools.setup(
44
name = 'WS-API',
55
packages = ['ws_api'],
6-
version = '0.8.0',
6+
version = '0.9.0',
77
license = 'GPL-3.0',
88
description = 'Access your Wealthsimple account using their (GraphQL) API.',
99
author = 'Guillaume Boudreau',

ws_api/wealthsimple_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,9 @@ def _activity_add_description(self, act):
442442
elif act['type'] == 'FUNDS_CONVERSION':
443443
act['description'] = f"Funds converted: {act['currency']} from {'USD' if act['currency'] == 'CAD' else 'CAD'}"
444444

445+
elif act['type'] == 'NON_RESIDENT_TAX':
446+
act['description'] = "Non-resident tax"
447+
445448
# TODO: Add other types as needed
446449

447450
def security_id_to_symbol(self, security_id: str) -> str:

0 commit comments

Comments
 (0)