Re-sync TP/SL orders to position size
resync_protectionRe-sync the take-profit / stop-loss orders on one of YOUR agent-wallet positions to the position's current size (requires the api:trade scope) — the Gambit app's Manage-position re-sync, used after a position was resized. It rescales the EXISTING TP/SL orders: it does not set new prices, does not add TP/SL to a position without them, and does not change the position. It cancels and re-places those orders on Hyperliquid, so call it only when the user asks. symbol must be a position the agent wallet holds (404 otherwise). An error carries the venue's reason.
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": {
"symbol": "<symbol>"
},
"name": "resync_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |