tastyware/tastytrade:v10.0.0 #231
Graeme22
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's Changed
overload to simplify classmethods by @Graeme22 in overload to simplify classmethods #230
Previously, classmethods were overly verbose, leading to patterns like this:
This release changes naming conventions across all Pydantic models to use a shortened name which combines the single and multiple fetches into a single, overloaded function:
This preserves type hints thanks to
typing.overload
, where the return type is inferred from the number of arguments.Here's a list of classes affected by this change by module:
tastytrade.account
:Account
tastytrade.instruments
:Cryptocurrency
,Equity
,Option
,NestedOptionChain
,FutureProduct
,Future
,FutureOptionProduct
,FutureOption
,Warrant
,NestedFutureOptionChain
tastytrade.watchlists
:PrivateWatchlist
,PublicWatchlist
(previouslyWatchlist
)Watchlist split into two subclasses,
PrivateWatchlist
andPublicWatchlist
switch to Semantic Versioning
AlertStreamer
now works withOAuthSession
Full Changelog: v9.13...v10.0.0
This discussion was created from the release tastyware/tastytrade:v10.0.0.
Beta Was this translation helpful? Give feedback.
All reactions