update_hl_copy_trade_settings
Modify settings of an existing Hyperliquid perpetual copy trade while preserving omitted fields; use it to fix invalid copyMode or oppositeCopy configurations.
Instructions
Change settings of an existing HL perp copy trade. Never deletes and never pauses/resumes. Reads the current config first; omitted fields keep their current values. Configs created by SDK <= 4.12 may hold an invalid copyMode (e.g. 416/480) and oppositeCopy=true; pass copyMode, fixedAmountCostPerOrder and oppositeCopy explicitly to repair them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | API key | |
| userId | No | Control wallet address | |
| copyMode | No | 1 = fixed USD per order, 2 = proportion | |
| 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 (from get_hl_copy_trade_list) | |
| lossPercent | No | Stop-loss % (> 0, < 100) | |
| oppositeCopy | No | Trade opposite to the trader | |
| traderWallet | No | New trader wallet to follow | |
| copyTradeName | No | New label | |
| profitPercent | No | Take-profit % (> 0) | |
| sessionPrivateKey | No | Session private key | |
| fixedAmountCostPerOrder | No | USD amount (mode 1) or ratio (mode 2) |