Skip to content

tastyware/tastytrade:v9.8

Compare
Choose a tag to compare
@Graeme22 Graeme22 released this 29 Jan 19:00
· 2 commits to master since this release
0091777

What's Changed

  • notional orders support by @Graeme22 in #207, thanks to @vadimtk for opening #206 and noticing this issue!
    You can now place notional market orders like so:
symbol = Equity.get_equity(session, 'AAPL')
order = NewOrder(
    time_in_force=OrderTimeInForce.DAY,
    order_type=OrderType.NOTIONAL_MARKET,
    value=Decimal(-10),  # $10 debit, this will result in fractional shares
    legs=[
        symbol.build_leg(None, OrderAction.BUY_TO_OPEN),
    ]
)
resp = account.place_order(session, order, dry_run=False)
  • Streamer shutdown bug fixed in 7928e9b, see #194, #205. Thanks to @militantwalrus for helping identify the issue!
  • Add note about using is_test and remember_token for additional sessions by @danstever in #203
  • order source field is now present for placed orders, detected by @salamad in #204
  • unit tests are now fully annotated for type safety
  • renames three internal utility functions, _set_sign_for, _get_sign, and _validate_response to not use a leading underscore in utils.py, since they are used in various modules.

New Contributors

Full Changelog: v9.7...v9.8