place_trailing_twap_order
Place a trailing stop order that, when triggered, executes a time-weighted average price (TWAP) strategy to buy or sell tokens, reducing market impact.
Instructions
Place a trailing-then-TWAP order. When trail triggers, execute via TWAP. action: trailing_twap_sell|trailing_twap_buy.
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": {
"wallet_address": "<wallet_address>",
"token_address": "<token_address>",
"action": "<action>",
"trail": "<trail>",
"frequency": "<frequency>",
"duration": "<duration>"
},
"name": "place_trailing_twap_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_address | Yes | ||
| token_address | Yes | ||
| action | Yes | ||
| trail | Yes | Trail bps | |
| frequency | Yes | ||
| duration | Yes | ||
| amount | No | Lamports (buy) or raw token units (sell) | |
| holdings_percentage | No | Sell only: bps | |
| slippage | No | ||
| expiry_hours | No |