place_bracket
Open a live bracketed trade with an entry, exact stop-loss, and take-profit, sized from your risk profile; choose market or resting limit entry and preview with dry_run.
Instructions
LIVE MONEY: acts on the real account. Open one trade as a bracket: an entry plus an exact stop-loss and take-profit, sized by the risk profile exactly as size_trade reports. The side follows the levels (stop below the entry or mark is a long). entry_px rests a limit order and the stop and target attach when it fills; omit entry_px to enter at market now. The take-profit is placed 0.5% inside tp_px so it fills before the level (the result shows both). leverage defaults to the profile's max and is set on the coin first. Refused, with nothing sent: reward to risk under min_r (never below 2R), a stop outside half the distance to liquidation, a coin not listed on this network, or a second position or resting entry on the coin, unless add=true, which tops an open same-side position up to full size with a stop no wider than the current one. dry_run=true runs every check and returns the sizing without placing. Call only when the user asked for this trade; size it first with size_trade, adjust it later with set_stop or set_target, exit with close_position. Needs a trading key. Returns {ok, placed, mode, entry_px, stop_px, tp_px, size, leverage, result, network, builder_fee}; a refusal is ok=false, placed=false with the reason. If a market entry fills but the venue refuses the stop, the result is ok=false, placed=true, reason "FILLED WITHOUT A STOP": place one at once with set_stop.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"coin": "<coin>",
"stop_px": "<stop_px>",
"tp_px": "<tp_px>"
},
"name": "place_bracket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Top up an open same-side position to full size; the new stop may not be wider than the current one. | |
| coin | Yes | Coin: a main-dex perp by name (BTC, ETH) or a HIP-3 perp as dex:SYMBOL (xyz:GOLD, xyz:BRENTOIL). | |
| min_r | No | Least reward-to-risk to accept; never below the 2R floor. | |
| tp_px | Yes | Take-profit price: above the entry for a long, below it for a short. | |
| dry_run | No | true: size and check the order, place nothing. | |
| stop_px | Yes | Stop-loss price: below the entry for a long, above it for a short. | |
| entry_px | No | Limit entry price: the order rests there and the stop and target attach on fill. Omit to enter at market. | |
| leverage | No | Leverage for the coin, capped by the risk profile's max leverage. |