Place OCO Exit Order
place_oco_orderPlace or preview a One-Cancels-Other order that pairs take-profit and stop-loss exits for a position, with an optional dry run before submitting.
Instructions
Place (or dry-run preview) an OCO (One-Cancels-Other) order for Take-Profit + Stop-Loss.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "place_oco_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | ||
| account | No | ||
| dry_run | No | ||
| duration | No | GOOD_TILL_CANCEL | |
| quantity | No | ||
| asset_type | No | EQUITY | |
| child_orders | No | ||
| confirm_live | No | ||
| stop_loss_price | No | ||
| exit_instruction | No | ||
| stop_limit_price | No | ||
| take_profit_price | No | ||
| trailing_stop_offset | No | ||
| trailing_stop_link_type | No | PERCENT | |
| trailing_stop_link_basis | No | BID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||