TWAP
Slice one buy or sell order over a configured duration.
TWAP
TWAP is an execution template, not a signal generator. It spreads one buy or sell order over a chosen duration.
Core config
marketSymbolExact market to trade.amountUsdTotal size to execute.schedule.cronWhen the TWAP starts.twap.sidebuyorselltwap.minutesTWAP duration in minutes.twap.randomizeWhether slice timing and sizing vary slightly.execution.leverageOptional leverage override.
How it works
Schedule and duration are different:
- schedule = when the TWAP begins
- duration = how long that single TWAP execution lasts
Examples:
- hourly schedule +
60minutes = start a new 1-hour TWAP every hour - daily schedule +
60minutes = once a day, spread the order over 1 hour - daily schedule +
240minutes = once a day, spread the order over 4 hours