Company
Date Published
Author
Yoshi Yokokawa
Word count
696
Language
English
Hacker News points
None

Summary

Bracket orders are now available on Alpaca, allowing users to automate trades and mitigate risk by setting up a primary order, take-profit order, and stop-loss order. The bracket order works by waiting for the stock price to hit a specific low or high threshold, then canceling the remaining order type. This feature can be set up algorithmically via API, but Alpaca's platform provides better risk controls to minimize potential mistakes. To use bracket orders, users need to add extra parameters to the POST /v2/orders endpoint, including "order_class" set to "bracket", and "take_profit" and "stop_loss" nested JSON objects. Conditional orders may have increased risk due to reliance on trigger processing and market data, and users should monitor them for reasonability. Alpaca Securities encourages using paper accounts to become more comfortable with the intricacies of conditional orders.