Twap.fi documentation
  • πŸ‘‹Welcome to Twap.fi
  • Overview
    • ⏳What is Twap.fi?
    • πŸ”‘Key Advantages
    • πŸ›£οΈRoadmap
    • ❓FAQ
  • Getting Started
    • 🀝Connect Wallet
    • πŸ’ΈAdd Funds to your Wallet
    • πŸͺ™Select Token
  • Order Types
    • ⏱️Smart TWAP
      • ⏱️How to TWAP
    • πŸ’°Capital-Efficient DCA
      • πŸ’°How to DCA
    • πŸ“ŠLimit Order
      • πŸ“ŠHow to Limit Order
    • ⚑Seamless Swap
      • ⚑How to Swap
Powered by GitBook
On this page
  1. Order Types
  2. Smart TWAP

How to TWAP

PreviousSmart TWAPNextCapital-Efficient DCA

Last updated 1 year ago

#
Parameter Name
Example
Explanation

1.

Input and Output Token

AVAX / USDT

The tokens that you are looking to trade

2.

Duration

10 Minutes

The time horizon over which you wish to complete your TWAP order. The longer the duration, the lower the price impact.

3.

Price Protection

1% / 5% / 10%

If the price drops below/above the limit price, the TWAP will automatically pause transactions until the price returns above/below the limit price. If enabled, the TWAP may not be fully completed within the designated duration.

4.

Slippage

1% / 5% / 10%

The difference between the expected price and executed price of the transaction.

5.

Clip Size Type

Automatic / Absolute / Percentage / Number of Child Orders

Clip size refers to the size of the child orders. By default, it is automatic - we calculate the clip size based on historical data of trade volumes and order-book depths to create digestible chunks.

6.

Advanced Settings

Trigger Price

The TWAP will only start when the trigger price is reached. For example,

the current price of ETH is $2000 and I want to sell it. I set my trigger price for $2500. This means that the TWAP will only start when the price of $ETH reaches $2500.

Clip Size Type

Clip Size Type
Explanation

Automatic

The optimal clip size is calculated automatically based on the historical data of trade volume and order-book depth to create the digestible chunks for each order.

Absolute

Create digestible chunks by the absolute value of the sell token in the trading pair.

For example, I wish to buy $1000 of ETH with USDT. If I input the absolute clip size value as β€œ100”, I am creating 10 child orders that are worth $100 USDT each.

Percentage

Create digestible child orders by the percentage of order size.

For example, 10% clip size generates 10 child orders. 25% clip size will generate 4 child orders and so on.

Number of Child Orders

Break the parent order into the number of child orders as you please. If you’re buying $1000 of a particular asset, inputting 5 child orders will result in the clip size being $200 each.

Trigger Price

Trigger Price
Explanation

Trigger Condition Above

Utilise when the trigger price is above the current market price. Typically, this is used for sell orders.

Trigger Condition Below

Utilise when the trigger price is below the current market price. Typically, this is used for buy orders.

⏱️
⏱️
TWAP Order Parameters