place_twap_order
Place a time-weighted average price (TWAP) order to buy or sell tokens. The total amount is divided into slices executed at set intervals over a duration, reducing market impact.
Instructions
Place a TWAP (time-weighted) buy or sell order. Splits total amount into frequency slices over duration seconds. action: twap_buy|twap_sell.
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>",
"frequency": "<frequency>",
"duration": "<duration>"
},
"name": "place_twap_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_address | Yes | ||
| token_address | Yes | ||
| action | Yes | ||
| frequency | Yes | Number of executions | |
| duration | Yes | Total run time in seconds (max 30 days) | |
| amount | No | Total lamports (buy) or raw token units (sell) | |
| holdings_percentage | No | Sell only: bps of holdings at creation | |
| slippage | No |