limit_buy
Create a limit buy order to purchase a token automatically when its USD price drops to your target. Set trigger price, spend amount, optional stop-loss and take-profit.
Instructions
Create a limit buy order — buy a token when price drops to target. Uses ABI-encoded + AES-encrypted computedData.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Native token to spend in raw units (wei/lamports) | |
| apiKey | Yes | API key for AES encryption | |
| userId | Yes | Control wallet address (NOT managed wallet) | |
| chainId | Yes | Numeric chain ID (e.g. 622112261 for Solana) | |
| lossPercent | No | Stop-loss % below trigger (e.g. '25'), '0' to skip | 0 |
| tokenAddress | Yes | Token address to buy | |
| triggerPrice | Yes | USD price at which to trigger the buy | |
| profitPercent | No | Take-profit % above trigger (e.g. '50'), '0' to skip | 0 |
| sessionPrivateKey | Yes | Session private key from sign-in |