boyan-soubachov / tastyworks_api

An unofficial, reverse-engineered Python API for tastyworks.
Apache License 2.0
209 stars 79 forks source link

add other time in force types to order details #34

Closed sullivanj91 closed 5 years ago

sullivanj91 commented 5 years ago

Problem addressed

The problem/issue addressed by this PR is https://github.com/boyan-soubachov/tastyworks_api/issues/8. Adding more time in force options like GTC and GTD.

Solution

Added a time-in-force Enum property to the OrderDetails object. Also add a gtc-date which is only relevant when using the GTD option. Made sure to check the payload the tastyworks api send when using this time in force option.

Checklist