TWAP Orders
Time-Weighted Average Price orders for large trades.
Overview
TWAP (Time-Weighted Average Price) splits large orders into smaller chunks executed over time. This:
- Reduces price impact
- Gets better average execution
- Minimizes slippage on big trades
Supported Chains
TWAP orders are available on EVM chains only:
- Base
- Ethereum
- Polygon
- Unichain
Not available on Solana.
Basic TWAP
Split a large sell over time:
"sell 1000 BNKR over the next 4 hours"
"TWAP sell 5000 DEGEN over 2 hours"
When to Use TWAP
TWAP is best for:
- Large positions relative to liquidity
- Tokens with thin order books
- Minimizing market impact
Example Scenario
You hold 10,000 BNKR and want to sell. A single swap might:
- Move the price significantly
- Get poor execution due to slippage
With TWAP:
"sell 10000 BNKR over 6 hours"
This executes smaller chunks every few minutes, getting better average price.
Configuration
Duration
How long to spread the execution:
"TWAP sell 5000 DEGEN over 1 hour"
"TWAP sell 10000 BNKR over 4 hours"
"TWAP sell 50000 tokens over 24 hours"
Chunk Size
Bankr automatically calculates optimal chunk sizes based on:
- Total amount
- Duration
- Typical gas costs
Managing TWAP Orders
View Active TWAPs
"show my TWAP orders"
"what automations do I have?"
Cancel TWAP
"cancel my TWAP order"
"cancel TWAP for BNKR"
Canceling stops future executions but doesn't reverse completed chunks.
Tips
Choose Appropriate Duration
- 1-2 hours: Medium positions, moderate liquidity
- 4-6 hours: Large positions
- 12-24 hours: Very large positions, patient execution
Monitor Progress
Check in periodically:
"how's my TWAP order doing?"
Limitations
- Not available on Solana
- Not available via XMTP
- Requires balance for entire duration
- Gas needed for each chunk execution
- Cannot modify after creation (cancel and recreate)