bracket_order
Place an entry order with attached take-profit and stop-loss exits. Once the entry fills, the take-profit limit and stop-loss stop orders become active, canceling each other when one executes.
Instructions
Place an entry order with attached take-profit and stop-loss exits (OCO).
The entry buys (or sells) quantity shares — market by default, or a limit if
entry_limit_price is set. Once it fills, two exits go live: a limit at
take_profit and a stop at stop_loss; when one fills the other is cancelled.
Returns one result per leg (labelled entry / take_profit / stop_loss in message).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | BUY | |
| symbol | Yes | ||
| quantity | Yes | ||
| stop_loss | Yes | ||
| take_profit | Yes | ||
| entry_limit_price | No |