Take profit
place_take_profitPlace a reduce-only Take profit (conditional market order) that triggers at triggerPrice. Side must be the CLOSING side of the position: SELL closes a LONG, BUY closes a SHORT. Once triggered it executes as an IOC limit bounded at triggerPrice ± slippageBps in the direction of execution (BUY above the trigger, SELL below; default 500 bps) so the close can cross the book.
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": {
"market": "<market>",
"side": "<side>",
"triggerPrice": "<triggerPrice>",
"size": "<size>"
},
"name": "place_take_profit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| size | Yes | ||
| market | Yes | ||
| clientId | No | ||
| slippageBps | No | Execution bound past the trigger, in bps (default 500). Raise for thin books. | |
| triggerPrice | Yes |