Skip to content

Releases: tastyware/tastytrade

tastyware/tastytrade:v11.1.0

18 Dec 20:54

Choose a tag to compare

What's Changed

  • added check if market is open at this moment in utils by @Quenos in #288
  • remove broken account endpoints related to OAuth migration:
    • get_position_limit
    • get_effective_margin_requirements
    • get_order_chain

Full Changelog: v11.0.5...v11.1.0

tastyware/tastytrade:v11.0.5

11 Dec 01:01

Choose a tag to compare

What's Changed

Full Changelog: v11.0.4...v11.0.5

tastyware/tastytrade:v11.0.4

08 Dec 23:17

Choose a tag to compare

What's Changed

  • Add external_identifier field to NewOrder and PlacedOrder classes by @markudevelop in #290
  • Fix #291 caused by sandbox environment not accepting versioning headers

New Contributors

Full Changelog: v11.0.3...v11.0.4

tastyware/tastytrade:v11.0.3

14 Nov 20:38

Choose a tag to compare

What's Changed

  • Type correction in PlacedOrder by @quantx-heiko in #286
    Fixes bug where any call to replace_order would fail. Likely caused by pydantic or API changes.

Full Changelog: v11.0.2...v11.0.3

tastyware/tastytrade:v11.0.2

02 Nov 19:25

Choose a tag to compare

What's Changed

  • Fix bug with tastytrade.metrics.get_risk_free_rate

Full Changelog: v11.0.1...v11.0.2

tastyware/tastytrade:v11.0.1

28 Oct 22:04

Choose a tag to compare

What's Changed

  • fix a small bug caused by pagination info not always present in JSON response

Full Changelog: v11.0.0...v11.0.1

tastyware/tastytrade:v11.0.0

28 Oct 00:53

Choose a tag to compare

What's Changed

  • remove username/password auth by @Graeme22 in #270
    Per Tastytrade docs, username/password authentication is scheduled for removal, so it has been removed here. OAuth is now the only way to authenticate to the API, and the Session class is now what used to be called OAuthSession. To authenticate you must create an OAuth application and save the refresh token and client secret. This process is documented here.
  • Python 3.9 support is now dropped as it has reached end-of-life. It's no longer in CI and Python 3.10's typing features (such as bool | None instead of Optional[bool]) are now present across the SDK.
  • The experimental backtesting module has been removed as it didn't provide much utility as part of the SDK.
  • Added docs example for a cryptocurrency order
  • More endpoints now support pagination, as documented in Tastytrade developer docs and the SDK docs
  • All endpoints now use the API's new versioning header, so breaking changes to the API won't affect the SDK

Full Changelog: v10.3.0...v11.0.0

tastyware/tastytrade:v10.3.0

11 Jul 15:28

Choose a tag to compare

What's Changed

  • Add open-interest to MarketData by @rcapozzi in #260
  • OAuth updates by @Graeme22 in a4b83ff
    • Adds a new function, login(), which allows for generating an initial refresh token to build an OAuth app. Uses Python's built-in HTTP server module, so no new dependencies are required!
    • Users are now encouraged to use OAuth instead of username/password authentication for better security
    • Adds OAuth-related docs section
    • Fixes bug where the direction property in the backtest module changed from "buy" and "sell" to "long" and "short" on the API side
    • Streamers now default the dxfeed_tos_compliant property to True, since functionality has improved greatly for the API-facing streamers
    • OAuth sessions can now be used with the streamer
    • OAuthSession.refresh() now refreshes streamer tokens as well if necessary
    • Rare garbage collection-related bug prevented in streamer disconnect callback
    • OAuthSession is now covered by tests
    • JSONDecodeError now handled cleanly in validate_response() (fiixes #261)

New Contributors

Full Changelog: v10.2.3...v10.3.0

tastyware/tastytrade:v10.2.3

11 Jun 17:27
4f0f686

Choose a tag to compare

What's Changed

Full Changelog: v10.2.2...v10.2.3

New Sponsors

A special thanks to @pangyuteng for contributing to the ongoing development of the SDK!

tastyware/tastytrade:v10.2.2

25 May 23:13
61e832e

Choose a tag to compare

What's Changed

  • enforce isort, strict typing (+mypy) by @Graeme22 in #251
    • isort now implemented across library + enforced for new code
    • now using pyright strict typing
    • mypy added as secondary type checker (also on strict mode) to ensure types work well for all users, regardless of type checker

Full Changelog: v10.2.1...v10.2.2