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