create_hl_copy_trade
Set up a Hyperliquid perpetual copy trade to mirror a chosen trader's long or short positions, with configurable sizing, stop-loss, and take-profit.
Instructions
Create a new HL perp copy trade. Copies a trader's long/short perpetual positions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | API key for AES encryption | |
| userId | Yes | Control wallet address | |
| copyMode | Yes | 1 = Fixed USD per order, 2 = Proportion of trader size | |
| 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 | Yes | Session private key from sign-in | |
| fixedAmountCostPerOrder | Yes | USD amount (mode 1) or ratio (mode 2) |