orbs_place_twap
Place a time-weighted average price (TWAP) order on Spot protocol by splitting your amount into equal chunks executed at regular intervals.
Instructions
Place a TWAP (time-weighted average price) order via Spot protocol. Splits fromAmount into equal chunks executed at regular intervals. Write, confirmation-gated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunks | Yes | Number of chunks to split the order into | |
| chainId | No | Chain ID (defaults to runtime config) | |
| toToken | Yes | Destination token address | |
| fillDelay | Yes | Delay between chunk fills in seconds | |
| fromToken | Yes | Source token address | |
| fromAmount | Yes | Amount in smallest token units | |
| slippageBps | No | Slippage tolerance in BPS (default 500 = 5%) | |
| exactApproval | No | If true, approve only the exact amount needed instead of unlimited |