create_copy_trade
Set up automated copy trading on Solana to mirror a trader's buys and optional sells, using fixed or percentage amounts with stop-loss and take-profit rules.
Instructions
Create a new copy trade to auto-mirror a Solana trader's buys/sells. Solana only.
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": {
"traderWallet": "<traderWallet>",
"copyTradeName": "<copyTradeName>",
"chainId": "<chainId>",
"buyMode": "<buyMode>",
"copyBuyAmount": "<copyBuyAmount>",
"lossPercent": "<lossPercent>",
"profitPercent": "<profitPercent>"
},
"name": "create_copy_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | API key for AES encryption | |
| userId | No | Control wallet address | |
| buyMode | Yes | 1 = fixed SOL amount, 2 = percentage of trader amount | |
| chainId | Yes | Must be 622112261 (Solana) | |
| copySell | No | Also copy sell trades | |
| 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) | |
| traderWallet | Yes | Solana wallet address of trader to copy | |
| copyBuyAmount | Yes | SOL amount (mode 1) or percentage 0-100 (mode 2) | |
| copyTradeName | Yes | Human-readable label | |
| profitPercent | Yes | Take-profit percentage (> 0) | |
| sessionPrivateKey | No | Session private key from sign-in | |
| excludedDexNumbers | No | DEX numbers to exclude | |
| isBuyExistingToken | No | Buy tokens already held by trader |