All important and notable changes will be documented here.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Changed the underlying streamer connection to use
aiocometd
rather than our own, custom-rolled transport.
- The
time-in-force
andgtc-date
properties to the OrderDetails object
- Example script now uses env vars for TastyWorks username/password instead of hard-coding values.
- The
rejected
order status type
- Fixed bug with in the
Quote
mapped item to support the new time fields - Removed the
time
key from theQuote
mapped item - Fix bug for missing
price
field in theOrder
model
- Changed number formats to use decimal types instead of floats for predictable representations
- Fixed a bug which prevented orders from executing altogether... big one.
- The
underlying_symbol
field from theOrder
model, this is not necessary and tastyworks does not have the symbol tied to an order; they are tied to individual legs of the order.
- Added a new, rewritten
get_option_chain
method to theUnderlying
model, which is inherited by models likeStock
and all other future representations of securities. - New
Security
model representing all securities (options and underlyings). - New
Underlying
model representing all underlyings (stocks, indices, ETFs). - New
OptionChain
model which represents an option chain (a collection of options). This should make management of a list of related options (i.e. for a ticker) easier.
- The
get_option_chains
function from the TastyAPISession. - The
Model
model
- Option model to store information about individual option legs
- Ability to execute options successfully (the last missing bit was option legs)
- Added first set of unit tests.
- OrderDetails object to encapsulate order-specific details
- Internal changes and refactors to the orders model
- Re-architecture of the API modus operandi. Details in the README.md file.
- Moved the remote-fetching of objects (e.g. Order, TradingAccount) to their relevant object models.
- Trimmed down remote-fetching of objects from the TastyAPISession object, it is now a much more light-weight object.
NB: This is backwards-incompatible
- Class describing orders (Order)
- Ability to get existing account orders
- Class for trading accounts (TradingAccount)
- Changed the session creation code, please see the new example file