Skip to main content

1inch v4 limit orders

Everything you need to know about swapping with 1inch Network's Limit Order protocol

V
Written by Valeriia Nikitina
Updated over a month ago

Benefits of 1inch v4 limit orders

1inch Network's v4 Limit Order protocol presents a unified order structure that combines traditional limit orders and high-performance RFQ orders, making it more efficient and easier to use.

This provides new benefits, such as:

  • Improved gas efficiency, with upgraded limit orders and RFQ-like orders being 14% and 3% more gas-efficient, respectively.

  • Full support for the permit2 feature, streamlining trades by eliminating redundant token approval steps and costs for users who have traded the same token in other DeFi projects.

  • Enhanced support for a wide range of order types, dynamic exchange rates, conditional orders, and the execution of arbitrary code, made possible through 1inch's innovative extension mechanism.

Overall, v4 focuses on reducing transaction costs, improving security, and offering advanced trading capabilities, significantly enhancing the user experience in decentralized finance trading.


​How does a 1inch limit order work?

A 1inch limit order is an order placed into an offchain database through the 1inch UI. When creating a limit order, you can set a specific price target and the terms of the trade. These types of orders are not sent to any one specific user; anyone, including the 1inch Aggregation Protocol, can fill them.

Obtaining access to the database externally is possible via the 1inch Limit Order API found on the 1inch Developer Portal.

The following chains are supported:

  • Ethereum Mainnet

  • Binance Chain

  • Polygon

  • Optimism

  • Arbitrum

  • Gnosis

  • Avalanche

  • Sonic

  • Unichain

When the market price matches the price set in the limit order, a taker can fill it, covering the gas cost in addition to the trade's value. It is important to note that the 1inch Limit Order protocol does not charge any additional fees. This lack of additional fees makes this protocol more gas-efficient than other external providers.

The 1inch Limit Order protocol supports a broad range of token standards such as ERC-20, BEP-20, ERC-721, and ERC-1155. Other token standards could be supported via an external extension.

A 1inch limit order does not reserve funds when placed; therefore, no tokens will be returned upon order cancellation or expiration. If the funds are moved after the order is placed, the order will not fill (you will see an error notification on the page, also).


How to create a limit order

To place a limit order on 1inch, perform the following steps:

  • Go to https://1inch.com/pro/limit and switch to the 'Limit' tab.

  • Select the asset you want to sell/buy in the pair picker, which is accessible from the Pair Watchlist or Pair Overview widgets.

  • Enter the desired amount in the Amount field in the Buy or Sell form.

  • In the Price field, enter the price at which you want your order to be executed. Then set the validity period in the Expires in field.

By placing a limit order, you aim to get more WETH for your DAI than the current market can offer you. Keeping this in mind, you'll have to adjust the price of the You pay asset, specifically, by increasing it. For this example, you could increase the price to 0.0007 WETH per 1DAI. Note that the amount of WETH will increase in accordance with the rate 1 WETH = 1428.5714 DAI.

Once you've set the target price for your DAI, you are good to go.

Placing a limit order with an insufficient balance is possible on the 1inch Limit Order protocol! The limit order will remain valid for the set period of time. It will fill partially, depending on the amount of funds held in the wallet, when market conditions are favorable.

  • Click Buy XXX or Sell XXX.

  • If approval is required, sign the approval transaction in your wallet. This approval allows the protocol to use your tokens and requires a small gas fee.

    • If using a permit 712 token, no gas fee is required — you can simply sign the approval and swap all in one step, for free.

  • After approval (if needed), sign the main transaction in your wallet to place the order.

  • The order will now appear on the UI in the Active Orders section.

Canceling an order


To cancel an active order, click the transaction in the list, then choose Cancel from the options on the right panel.

The "Cancel all limit orders" option enables you to cancel all active orders simultaneously.

Manually canceling a limit order incurs a gas fee when the transaction is signed.

If you happened to have active limit orders placed before the 1inch Limit Order protocol was released, you can keep track of them under the tab Legacy Active Orders (0x limit orders).

If you create a limit order and then move the funds out of the wallet before it is filled, you will see an "insufficient funds" notification. This means that the order will not fill, due to the to funds not being present in the wallet.


What if my limit order never gets filled?

Several factors can cause a limit order not to be filled. Some of them include:

  • The exact limit order price target might not have been reached. The charts displayed on the 1inch UI aggregate price data from multiple sources. At times, a discrepancy may exist between the displayed chart price and the on-chain execution price.

  • The order might not have been profitable for a taker. Takers must consider the order's size, gas fees, and personal profit margin before deciding to fill your order. Additionally, takers may only fill part of the order and then seek out other orders with higher profitability.

  • It is a rare token that has low trading volume. There may currently not be a taker on the other side to fill the order.

  • There are insufficient funds in the wallet to fulfill the order. If a limit order is placed and the funds are moved, it will remain active, but unfilled.


Why can't I view my limit order?

  • The transactions might not have been signed before placing.

  • The order was already executed (this can be checked in your 1inch order history).

  • The page needs to be refreshed.


Questions, comments, concerns?

Feel free to reach out to us in the live support chat!

Did this answer your question?