add SNAP MID order type and usage example #109
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add SNAP MID order type, quite simple one.
I noticed that other order-type classes were suggested, and I wanted to respond to this comment.
The primary goal of this library, as stated in the README, is "to make working with the Trader Workstation API from Interactive Brokers as easy as possible." If the library doesn’t support the various order types directly, people using it will be forced to write additional wrappers themselves to handle these order types, which could result in less readable code. This goes against the library's core intent. After all, ibapi already provides the raw interface to the IB API, and the real value of ib_async lies in simplifying that interface and making it more human-friendly.
To ensure these new classes are helpful, a few points should be addressed:
I’ve made both of these changes in the pull request.