🚄TWAP

TWAP (Time-Weighted Average Price) is a trading algorithm that allows users to execute large trades over a specified time period, breaking down the total amount into smaller orders to minimize market impact. This feature is now available for users to run directly on our platform.

Accessing the TWAP Feature

To access the TWAP feature, navigate to the Trade Modal and select the TWAP section located below the Paraswap call. The TWAP section has three expandable subsections:

  1. Place New Order

  2. Active TWAPs

  3. TWAP History

Place New Order

In this section, users can set up a new TWAP order.

  1. Token Selector: Use the token selector to choose the tokens you want to sell and buy.

  2. Limit Price (optional): Specify the limit price for the trade.

  3. Slippage Tolerance (in bps): Specify the slippage you are wiling to accept beyond the quote received,

  4. Number of Orders: Input the number of smaller orders to break the total amount into.

  5. Time Interval: Set the interval between orders (in seconds, minutes, or hours).

  6. Place Order Button: Click this button to finalize and place your order.

  7. Start Time (optional): Specify the start time of your first order. This will default to starting upon trade submission.

By default, the TWAP algorithm will stop after attempting the number of orders specified above. This means that the order might not get fully filled if the limit price condition is not satisfied or if an order fails. Note: we are working on adding an option to exceed the initial number of orders to fill the full-size to be released in the next few weeks

2. Active TWAPs

This section displays currently active TWAP orders.Components

  1. Active TWAP List: Shows a list of active TWAP orders.

    • Each row displays:

      • The tokens being sold and bought

      • The amount of tokens being sold

      • The percentage of the order completed

      • Options to cancel the order and view more details

  2. In-Depth Details: When expanded, each row shows detailed information about the order, including start time, time interval, source token, destination token, amount, limit price, number of orders, and whether all orders are set to be completed.

3. TWAP History

This section displays the history of completed TWAP orders.Components

  1. TWAP History List: Similar to the active TWAPs list but includes completed orders.

  2. In-Depth Details: Each row can be expanded to show detailed information about the completed order.

Last updated