limit_sell
Create a limit sell order to sell a token when its USD price reaches your target, automatically classifying the order as take-profit or stop-loss.
Instructions
Create a limit sell order — sell a token when price reaches target. Auto-classifies as TP or SL.
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": {
"chainId": "<chainId>",
"tokenAddress": "<tokenAddress>",
"amount": "<amount>",
"triggerPrice": "<triggerPrice>"
},
"name": "limit_sell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Token amount in raw units (token decimals), a positive integer string | |
| apiKey | No | API key for AES encryption | |
| userId | No | Control wallet address | |
| chainId | Yes | Numeric chain ID | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| tokenAddress | Yes | Token address to sell | |
| triggerPrice | Yes | USD price at which to trigger the sell (plain decimal) | |
| sessionPrivateKey | No | Session private key from sign-in |