propose_hyperliquid_perp_modify
Propose modifying an open Hyperliquid perp position: its stop-loss / take-profit and/or its leverage. Only the exit you pass is replaced: changing stopLoss keeps the resting take-profit(s), and vice versa. leverage changes the open position's leverage in place (keeps its cross / isolated mode, size unchanged). Raising leverage runs FortFi perp policy (max leverage) and the wallet loss cap; lowering it needs enough margin on Hyperliquid. Returns a proposalId for confirm_proposal.
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": {
"walletId": "<walletId>",
"symbol": "<symbol>"
},
"name": "propose_hyperliquid_perp_modify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| leverage | No | New leverage for the open position (whole number, up to the market max and the owner's policy max). Must differ from the current leverage. | |
| stopLoss | No | New stop-loss trigger for the whole position. Replaces the resting stop only. | |
| walletId | Yes | ||
| takeProfit | No | New take-profit trigger. Replaces the resting take-profit(s) only. | |
| takeProfitSizePercent | No | Close only this % of the position at takeProfit (e.g. 50 to bank half at 2R and let the rest run). Default 100. The stop keeps covering the full position. |