create_hl_copy_trade
Set up a Hyperliquid perpetual copy trade to mirror a trader's long/short positions, with configurable risk and profit targets.
Instructions
Create a new HL perp copy trade. Copies a trader's long/short perpetual positions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | API key for AES encryption | |
| userId | No | Control wallet address | |
| copyMode | Yes | 1 = Fixed USD per order, 2 = Proportion of trader size | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| lossPercent | Yes | Stop-loss percentage (> 0, < 100) | |
| oppositeCopy | No | Short when trader goes long | |
| traderWallet | Yes | EVM address of the trader to copy | |
| copyTradeName | Yes | Human-readable label | |
| profitPercent | Yes | Take-profit percentage (> 0) | |
| sessionPrivateKey | No | Session private key from sign-in | |
| fixedAmountCostPerOrder | Yes | USD amount (mode 1) or ratio (mode 2) |