What's Changed
Adds a new module, market_sessions
to the SDK which implements the new API endpoints used for checking exchange status and market calendars. This is an alternative to some of the utility functions in tastytrade.utils
which uses Tastytrade endpoints. Check out the new docs page here!
This adds a new optional parameter, proxy
, to the Session
class to proxy all requests through a proxy server. Proxies will also apply to all web socket connections (so DXLinkStreamer
and AlertStreamer
) created with that session.
session = Session('username', 'password', proxy="http://user:[email protected]:8080")
accounts = Account.get_accounts(session) # proxied!
async with DXLinkStreamer(session) as streamer: # proxied!
# ...
- sessions now have a context manager, which can be used like this:
with Session('username', 'password') as session:
# ...
which is equivalent to:
session = Session('username', 'password')
session.destroy()
Full Changelog: v9.9...v9.10