-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to create more bracket order types
This change adds support for specifying more bracket order types to the program. Specifically, we recognize two new optional arguments for the order submit sub-command: --stop-loss-stop-price and --stop-loss-limit-price. If only --stop-loss-stop-price is provided, we create a one-triggers-other order with a stop loss (as opposed to a take profit, which we already support). If both the existing --take-profit-price and --stop-loss-stop-price are given, we will submit a "true" bracket order with both a take profit and a stop loss leg. Lastly, if --stop-loss-limit-price is specified additionally, the stop loss leg will actually be a stop-limit order (as opposed to a regular stop market order).
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters