{"id":366516,"date":"2021-11-13T14:11:00","date_gmt":"2021-11-13T11:11:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/limit-order-protocols-offer-more-flexibility-and-efficiency-to-dex-traders\/"},"modified":"2021-11-13T14:11:00","modified_gmt":"2021-11-13T11:11:00","slug":"limit-order-protocols-offer-more-flexibility-and-efficiency-to-dex-traders","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/limit-order-protocols-offer-more-flexibility-and-efficiency-to-dex-traders\/","title":{"rendered":"# Limit order protocols offer more flexibility and efficiency to DEX traders"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2e4b8dc7984\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2e4b8dc7984\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/limit-order-protocols-offer-more-flexibility-and-efficiency-to-dex-traders\/#Request_for_quotes\" >Request for quotes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/limit-order-protocols-offer-more-flexibility-and-efficiency-to-dex-traders\/#Conditional_execution_and_dynamic_pricing\" >Conditional execution and dynamic pricing<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/limit-order-protocols-offer-more-flexibility-and-efficiency-to-dex-traders\/#Stop_and_trailing_stop_orders\" >Stop and trailing stop orders<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/limit-order-protocols-offer-more-flexibility-and-efficiency-to-dex-traders\/#Gas_efficiency\" >Gas efficiency<\/a><\/li><\/ul><\/nav><\/div>\n<p>&#8220;<strong># Limit order protocols offer more flexibility and efficiency to DEX traders <\/strong>&#8221;<\/p>\n<div class=\"post-content\" data-v-128018ef>As decentralized exchanges (DEXs) evolve, their functionalities become more and more advanced, often matching those of centralized exchanges (CEXs). One such functionality is the ability to place limit orders, which offers more flexibility and efficiency to DEX traders. This article looks at the existing limit order features and their prospective implementations.\u00a0<\/p>\n<p>Unlike a market order, which is executed im<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/social-mediaa\/\" data-internallinksmanager029f6b8e52c=\"1\" title=\"Social Media\" target=\"_blank\" rel=\"noopener\">media<\/a>tely at the last market price with potential slippage, a limit order is executed at a predefined price as soon as it is reached. Market orders are used by default in all automated market maker-based DEXs. They are simple and straightforward for beginners. A market order is guaranteed to be executed or fail due to parameters, such as the maximum price impact. <\/p>\n<p>In turn, limit orders are intended for more advanced traders, since they require analyzing the market situation and assessing the probability of an asset\u2019s price reaching a specific level. Considering filling limit orders on a blockchain also requires taking gas costs into account, which, based on order size, could make the trade more or less profitable.<\/p>\n<p>Still, limit orders are a great tool for professional market makers that can significantly increase the profitability of trading.<\/p>\n<p>Just like CEXs, a range of decentralized protocols \u2014 including SushiSwap, the 1inch Limit Order Protocol and 0x \u2014 offer limit order functionality. As a result, advanced features never before seen in DeFi, have been made available, including request for quote (RFQ), dynamic pricing and conditional execution. <\/p>\n<h2><span class=\"ez-toc-section\" id=\"Request_for_quotes\"><\/span>Request for quotes <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>RFQs can be viewed as over-the-counter (OTC) systems for decentralized trading that enable market makers to bridge liquidity from CEXs to DEX users. That provides better pricing for large and medium-size trades.<\/p>\n<p>An RFQ system aims to make providing significant amounts of liquidity to DEXs easy and profitable while also reducing risks. Because market makers can choose when and with whom they want to transact, they can maximize their ratio of retail order flow to arbitrage flow.<\/p>\n<p>The RFQ feature enables primary market makers (PMMs) who normally trade crypto assets on CEXs or OTC options, to trade large amounts of crypto with low risk on DEXs. Thanks to the RFQ, PMMs bring substantial liquidity from CEXs to DEXs.<\/p>\n<p>If, for instance, a user wants to swap 1,000 Ether (ETH), a limit order protocol reaches out to PMMs, asking them if they\u2019ll do this swap. If they are interested, they send a signed order. Once the order has been executed, a PMM sells the 1,000 ETH on another chain\u2019s DEX at a profit, while the DEX takes advantage of the liquidity brought by the PMM. Thus, PMMs effectively bring CEXs\u2019 and other chains\u2019 liquidity to DEXs.<\/p>\n<p>In addition, RFQ offers better gas efficiency. While the filling of a simple market order would cost 90,000 of gas, an RFQ order would cost just 70,000 of gas (these figures are <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>roximate).<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conditional_execution_and_dynamic_pricing\"><\/span>Conditional execution and dynamic pricing<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The 1inch Limit Order Protocol\u2019s conditional execution and dynamic pricing features could facilitate a range of functionalities.\u00a0Thanks to conditional execution, users can maximize their earnings on trades by specifying conditions for order execution.\u00a0In the dynamic pricing feature, swap prices are calculated by smart contracts, based on demand and supply.<\/p>\n<p>One promising use case for dynamic pricing is auctions. A limit order can be placed in such a way that the price will increase or decrease (as in a Dutch auction). Similarly, the dynamic pricing feature can power initial DEX offerings and other token sales based on the auction model or nonfungible token (NFT) auctions.<\/p>\n<p><strong><em>Related:\u00a0How much intrigue is behind Kusama\u2019s parachain auctions?<\/em><\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Stop_and_trailing_stop_orders\"><\/span>Stop and trailing stop orders<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Another example of the implementation of conditional execution and dynamic pricing features could be stop orders and trailing stop orders.<\/p>\n<p>Stop orders are only placed when specific price conditions are met, with price data provided by oracles. For instance, \u201cSell wETH at $2,000 when the oracle price is lower than $2,100.\u201d Stop orders can be used in combination with market or limit orders, which offers traders more flexibility and a chance to create more complex strategies.<\/p>\n<p>Basically, the difference between limit and stop orders is that limit orders are placed on the order book, and anyone can see them, while stop orders are only submitted when a preliminarily defined price is reached.<\/p>\n<p>Unlike a stop market order, which would say something like \u201cIf the price reaches X, buy\/sell immediately,\u201d a stop-limit order would say \u201cIf the price hits X, place an order to buy\/sell at Y.\u201d X and Y can have the same value, but not necessarily.<\/p>\n<p>A combination of a stop market order and a stop limit order would be, for instance: \u201cIf Bitcoin\u2019s oracle price is below $30,500, sell Bitcoin at $30,000.\u201d<\/p>\n<p>A trailing stop, also known as a trailing stop-loss, is a market order that sets a stop-loss at a specific percentage lower than an asset&#8217;s market price as opposed to a single value. After that, a stop-loss order trails behind the asset as its price changes \u2014 hence, the name \u201ctrailing stop.\u201d An example of a trailing stop order would be: &#8220;Sell wETH if its price falls by $300 from today\u2019s highest price.&#8221;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Gas_efficiency\"><\/span>Gas efficiency <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We have calculated gas usage for RFQ order execution in four versions of the 0 protocol, as well as those of regular limit and RFQ orders in the 1inch Limit Order Protocol. <\/p>\n<p>The chart below summarizes 90th percentile gas usage of these protocols (applying to 90% of transactions). More gas usage data is available <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/dune.xyz\/queries\/160348\">here<\/a>. <\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/s3.cointelegraph.com\/uploads\/2021-11\/dbba3f7b-44f0-4dfe-a8ac-a2d4657e3099.png\"><\/figure>\n<p><strong><em>Related:\u00a0Ethereum Improvement Proposal 1559: Is the squeeze worth the juice?<\/em><\/strong><\/p>\n<p>DEXs aim to offer the same features as CEXs, but in a decentralized environment. And in some aspects, DEXs have already overtaken CEXs, such as, for instance, AMMs. The limit order functionality is a major tool moving the segment forward, narrowing the gap between options offered by CEXs and DEXs.<\/p>\n<p><template data-name=\"subscription_form\" data-type=\"defi_newsletter\"><\/template><\/p>\n<p class=\"post-content__disclaimer\"><em>This article does not contain investment advice or recommendations. Every investment and trading move involves risk, and readers should conduct their own research when making a decision.<\/em><\/p>\n<p class=\"post-content__disclaimer\"><em>The views, thoughts and opinions expressed here are the author\u2019s alone and do not necessarily reflect or represent the views and opinions of Cointelegraph.<\/em><\/p>\n<div>\n<div style=\"background: rgb(239, 239, 239); border: 1px solid rgb(204, 204, 204); padding: 10px;\"><strong>Anton Bukov<\/strong> is the co-founder of the 1inch Network, a distributed network of decentralized protocols. Anton worked as a C++ developer and iOS developer and later contributed to crypto projects including MultiToken, NEAR and Synthetix. Anton also co-hosted a YouTube show, <em>CryptoManiacs<\/em>. At a 2019 hackathon, Anton and Sergej Kunz, the 1inch Network&#8217;s eventual co-founder, developed a prototype crypto exchange aggregator that became the basis of the entire network.<\/div>\n<\/div>\n<\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong>\n<\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/news\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"News\" target=\"_blank\" rel=\"noopener\">News<\/a> articles, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/general\/\" target=\"_blank\" rel=\"noopener\">General category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/cointelegraph.com\/news\/limit-order-protocols-offer-more-flexibility-and-efficiency-to-dex-traders\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;# Limit order protocols offer more flexibility and efficiency to DEX traders &#8221; As decentralized exchanges (DEXs) evolve, their functionalities become more and more advanced, often matching those of centralized exchanges (CEXs). One such functionality is the ability to place limit orders, which offers more flexibility and efficiency to DEX traders. This article looks at&#8230;<\/p>\n","protected":false},"author":1,"featured_media":366517,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/images.cointelegraph.com\/images\/1200_aHR0cHM6Ly9zMy5jb2ludGVsZWdyYXBoLmNvbS91cGxvYWRzLzIwMjEtMTEvZTgxOTJlNjAtM2M3Yi00NGI2LWFmMmYtMDA1MWFkMjM1N2I3LmpwZw==.jpg","fifu_image_alt":"","footnotes":""},"categories":[1],"tags":[74894,74860,74983,74877,74868,74891,74355,4965],"class_list":["post-366516","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","tag-blockchain","tag-cryptocurrency-exchange","tag-decentralization","tag-decentralized-exchange","tag-defi","tag-ethereum","tag-adoption","tag-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/366516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=366516"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/366516\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/366517"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=366516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=366516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=366516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}