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.
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 |