TWAP
Last updated
Last updated
The Time-Weighted Average Price (TWAP) algo attempts to spread out an order evenly throughout a period of time. Using a TWAP execution is one way to achieve an average price that matches the market and can help minimize slippage and reduce costs.
We can choose the parameters based on the trading goals.
Buy/Sell
Direction of the order
Market
Symbol & price currency of the market, and the exchange
Quantity
Total quantity that will execute, measured in token units or contracts
Time Interval
Amount of time to wait between orders
Take Through Fraction
At what price to send the order, relative to the opposite side market. For example on a buy order, a take through fraction of 0 would send bids at a price equal to the best offer at the time, and a take through fraction of 0.0005 would send bids 0.05% (5 basis points) above the current offer. Increasing this parameter above 0 reduces the chance of missing out on trades in a fast moving market, but has a higher risk of price slippage.
Reject Lockout
If an order is rejected, wait this amount of time before trying again
Time
End time of the algo, in your local timezone
The algo is not guaranteed to fill its full size by the end time, and will cancel any remainder size. Notably, it will not attempt to "catch-up" if orders are unfilled (e.g. due to rejects).