-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
180 iterate on buy/sale logic (#186)
* PlaceOrderButton: Prevent action on disabled btn * tradesMeta: make comments into doc comments * Add alpaca-ts (Alpaca TS client) * Remove price-range check for buy orders Handled in alpaca with limit rules, and if needed should be set from UI when creating the order * api/broker/orders: cleanup * tradesHandler: Refactor triggerUpdateOpenBuyOrders * tradesHandler: only clear BUY trades * helpers: Add isValidSymbol * Fix sell logic to put sell orders correctly Also fixes some other minor problems, naming, etc. * Change buy breakout order to use stop order * getTradesByStatus: Add support for multiple statuses * Update take partial profit check Only perform once, then revert to regular stop-loss procedure * tradesHandler: Add stop-loss case (2), isToday check (closes #185)
- Loading branch information
Showing
10 changed files
with
338 additions
and
233 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
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
Oops, something went wrong.