update_order
Modify or cancel an existing limit order on GDEX Trading by changing amount, trigger price, or TP/SL settings, or set isDelete=true to cancel.
Instructions
Update or delete an existing limit order. Set isDelete=true to cancel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | New amount in raw units | |
| apiKey | Yes | API key for AES encryption | |
| userId | Yes | Control wallet address | |
| chainId | Yes | Numeric chain ID | |
| orderId | Yes | 64-char hex order ID from get_limit_orders | |
| isDelete | No | Set true to cancel the order | |
| lossPercent | No | New SL % (buy orders only) | |
| triggerPrice | No | New trigger price in USD | |
| profitPercent | No | New TP % (buy orders only) | |
| sessionPrivateKey | Yes | Session private key from sign-in |