What's Changed
-
[BREAKING] Update instruments.py by @Quenos in #192
This PR changes the signature of theNestedOptionChain.get_chain
(andNestedOptionChain.a_get_chain
) functions. Certain symbols, like VIX and SPX, may have more than one root symbol (eg SPX and SPXW), which are parsed as different chains in the API. Previously, some of that data was being thrown away, but now these functions returnlist[NestedOptionChain]
instead of a singleNestedOptionChain
. -
add serialization for sessions by @Graeme22 in #197
This PR adds new functions to thetastytrade.Session
class,serialize
anddeserialize
, which allow for safely and easily storing sessions for later use. Example usage:
session = Session('username', 'password')
# ...
data = session.serialize()
redis.set("session", data)
# ...
session = Session.deserialize(redis.get("session"))
Full Changelog: v9.6...v9.7