update_hl_copy_trade
Update a Hyperliquid perpetual copy-trade configuration by rewriting all fields from the full payload; optionally toggle active/paused or permanently delete it without closing open positions.
Instructions
Low-level HL perp copy trade update (prefer update_hl_copy_trade_settings / pause_hl_copy_trade / resume_hl_copy_trade / delete_hl_copy_trade). Every field is rewritten from this payload, so pass the full current config. isDelete=true permanently deletes the configuration; perp positions it opened are NOT closed and their TP/SL orders are NOT cancelled. isChangeStatus=true TOGGLES active/paused relative to the stored state. isDelete and isChangeStatus cannot both be true.
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": {
"copyTradeId": "<copyTradeId>",
"traderWallet": "<traderWallet>",
"copyTradeName": "<copyTradeName>",
"copyMode": "<copyMode>",
"fixedAmountCostPerOrder": "<fixedAmountCostPerOrder>",
"lossPercent": "<lossPercent>",
"profitPercent": "<profitPercent>"
},
"name": "update_hl_copy_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | API key | |
| userId | No | Control wallet address | |
| copyMode | Yes | 1 = fixed USD per order, 2 = proportion | |
| isDelete | No | Permanently delete the configuration (positions stay open) | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| copyTradeId | Yes | Copy trade ID to modify | |
| lossPercent | Yes | Stop-loss % (> 0, < 100) | |
| oppositeCopy | No | Trade opposite to the trader | |
| traderWallet | Yes | Trader wallet address | |
| copyTradeName | Yes | Label | |
| profitPercent | Yes | Take-profit % (> 0) | |
| isChangeStatus | No | Toggle active/paused relative to the stored state | |
| sessionPrivateKey | No | Session private key | |
| fixedAmountCostPerOrder | Yes | USD amount (mode 1) or ratio (mode 2) |