set_take_profit
Set a take profit order for an existing position on HyperLiquid, locking in gains at a specified price. Input the coin and target price; position size is optional and auto-detected.
Instructions
Set ONLY a take profit order for an EXISTING position
Args: coin: Trading pair (e.g., "BTC", "ETH") - must have an existing position take_profit_price: Take profit price position_size: Position size (will auto-detect from existing position if not provided)
Note: This is specifically for setting ONLY take profit on EXISTING positions. Use set_take_profit_stop_loss if you want both TP and SL, or place_bracket_order for new positions.
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>",
"take_profit_price": "<take_profit_price>"
},
"name": "set_take_profit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | ||
| position_size | No | ||
| take_profit_price | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||