- Added a new
on
handler forrefresh
events, called when the library automatically updates your access token and also when auth.refresh()
is used.
- Introduce data.
securityGroups
and data.getSecurityGroup
APIs for looking up all security groups on Trade and also fetching the securities associated with them.
- Support concurrency with a
Session
API. The codebase has been refactored to allow for concurrent usage where you can manage several Trade accounts!
- Add
request
to package.json to force install it becausecloudscraper
requires it even though it's deprecated.
- Integrated library (
cloudscraper
) that solves Cloudflare bot challenges for all WS endpoints.
- Expanded support for the accounts.
activities
API, allowing for filtering of what activities to pull based on activity type (e.g.,buy
,sell
) or open accounts (tfsa, rrsp, etc).