What's Changed
* notional orders support by Graeme22 in https://github.com/tastyware/tastytrade/pull/207, thanks to vadimtk for opening #206 and noticing this issue!
You can now place notional market orders like so:
python
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 https://github.com/tastyware/tastytrade/pull/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
* danstever made their first contribution in https://github.com/tastyware/tastytrade/pull/203
**Full Changelog**: https://github.com/tastyware/tastytrade/compare/v9.7...v9.8