Trading on Uniswap

Trading on Uniswap

Dec 27, 2019
Trading on UniswapTrading on UniswapVideo Thumbnail

Uniswap is a recently launched project built on top of Ethereum which has garnered a lot of interest over the last few months because of its novel economics.

In short, Uniswap is a kind of decentralized exchange – a crypto asset exchange which operates without a central authority – which utilizes an Automated Market Making (AMM) algorithm¹ aiming to guarantee liquidity for any order on a listed trading pair at a given volume. This research note does not aim to fully explain exactly how Uniswap works because there have already been a number of good explanatory articles written about it which we recommend the reader looks at. This note – split into two articles – will look at two key agents within the Uniswap economy and analyze the relevant data for each to ascertain the viability of the Uniswap AMM model.

Key Agents

The agents are as follows:

Traders who can submit orders to buy X amount of ETH and must pay Y amount of a given token as decided by the AMM or vice versa. In general, a trader aims to get the best available price for their trade (less fees) – defined as the lowest possible value of Y/X for a given order size when compared to alternative exchanges.

Liquidity Providers who provide liquidity for a given trading pair which the AMM then uses. For this, they are rewarded a proportional share of the 0.3% fee taken on trades carried out on Uniswap. In general, a liquidity provider aims to maximize their returns which is measured as the increase in terms of dollar value of their proportion of the liquidity pool – which is a function of: (1) the liquidity they committed (in tokens X & Y) as a proportion of total liquidity of the trading pair; (2) the dollar value of tokens X & Y each over time; and (3) the amount of fees they receive from those who use the given liquidity pool.

Trades

In order to ascertain whether traders, on average, received the best available price on Uniswap, we narrowed in on a specific trading pair – ETH/DAI. The below chart shows the derived exchange rate (on a trade-by-trade basis) for ETH/DAI and DAI/ETH trading pairs over time:

As expected, the ETH and DAI prices have an (almost perfectly) inverse relationship over time. This fact is not surprising given that it can be said to be a corollary of the function of the AMM.Compare this instead to the trading pairs for ETH & DAI on another popular order-booked based exchange called EtherDelta. The below chart shows the price of the ETH/DAI & DAI/ETH trading pairs on EtherDelta:

There is a stark difference in price stability and liquidity in EtherDelta when compared to Uniswap. This can potentially be put down to the effectiveness of the AMM thus far when judged solely on those two aforementioned factors. However, there are a few caveats to this kind of analysis: (1) liquidity on EtherDelta is generally quite low for ETH & DAI trading pairs; and (2) if one is trying to make an argument for the AMM’s ability to provide traders with good prices it makes more sense to compare Uniswap to the most popular decentralized exchanges. Thus, the chart shown below compares trading volume across the most popular decentralized exchanges (or relayers) since shortly after Uniswap’s launch to mid-March (2018-11-14 to 2019-03-14):

Analysis

As the above chart shows, Uniswap’s trading volume for most of the timeframe paled in comparison to some of the more popular decentralized exchanges such as Paradex, Radar Relay, and Kyber (as well as DDEX). This can be mostly explained by the exchange’s youth, as well as the nature of the use of a Constant Product AMM where the possibility of a ‘best price’ gets worse as the volume of the trade increases. This fact disincentivizes large trades (as a proportion of the liquidity pool) from happening, although this fact isn’t necessarily important given Uniswap’s ostensible niche as a user-friendly decentralized broker-dealer service.

Moreover, all exchanges looked at for this analysis show surprisingly small (non-weighted) average price intergroup variance which demonstrates that arbitrageur behaviour on DEXs has been relatively efficient despite potential issues with their early-stage infrastructure. Plotting the volume-weighted average prices (VWAP) of these DEXs, however, paints a slightly different picture:

As can be seen, the daily VWAP of Uniswap is more responsive to changes in price than the other DEXs; this is expected as large quantity orders (which the VWAP metric gives more weight to than a naïve average price calculation) receive a worse exchange rate than on other exchanges with similar liquidity. This fact extenuates price shocks as measured by VWAP.

Conclusion

This article has served as a brief commentary on the exchange data behind Uniswap to help readers better understand how the exchange’s mechanics affect traders. This commentary series will continue next week with a look at the data behind Uniswap’s liquidity provision (the second key agent).

Disclaimer

The information provided does not constitute a prospectus or other offering material and does not contain or constitute an offer to sell or a solicitation of any offer to buy securities in any jurisdiction.

Some of the information published herein may contain forward-looking statements. Readers are cautioned that any such forward-looking statements are not guarantees of future performance and involve risks and uncertainties, and that actual results may differ materially from those in the forward-looking statements as a result of various factors.

The information contained herein may not be considered as economic, legal, tax or other advice and users are cautioned to base investment decisions or other decisions solely on the content hereof.

  1. The AMM that Uniswap uses is called a “Constant Product Market Maker Model” wherein the price offered by the algorithm for a given order asymptotically increases with unit quantity.
Welcome to 21shares
Country of residence
Exchange
Investor Type
Retail Investor
Professional investor
Choose your investor type to continue.

General Disclaimers

This website belongs to and is issued by 21 Shares (consisting of 21Shares AG and its affiliates). 21Shares publishes this website solely to provide information on 21Shares and its products. This website does not constitute a public offering of financial products.  Nothing on this website should be considered advice or a recommendation to any person to subscribe for financial products or investment services and activities. 

No information published on this website constitutes a solicitation, offer or recommendation to buy or sell any investment instruments or to conclude any other transactions or any legal acts whatsoever.

The website may contain forward-looking statements. 21Shares makes no assurance that products based on crypto currencies, digital assets and indices referencing them will provide positive investment returns. Do not invest before carefully considering the risks associated with investing in such products and read in detail all pre-contractual documentation and periodic reports. Refer to the section entitled “Risk Factors” in the relevant Prospectus (consisting of all its Supplements) and the Final Terms for details on the risks associated with an investment in the products offered by the issuers before investing. Seek your own independent investment advice on all applicable legal requirements, exchange control regulations and taxes in your jurisdiction.

Charts and graphs are provided for illustrative purposes only and past performance is not an indication or guarantee of future results. The investment performance of any security referred to on this website can be volatile and can go up or down in value and you can lose your entire investment. Exchange rates may affect the value of investments. Investments in foreign currencies are additionally subject to exchange rate fluctuations and therefore carry a higher level of risk. Therefore, 21Shares cannot guarantee that any capital invested will maintain its value or increase in value.

21Shares does not guarantee the accuracy, completeness, timeliness or availability of the website information and will not be responsible for any errors or omissions, regardless of the cause, for the results obtained from the use of the content. 21Shares will not be liable for damages (including damages for loss of earnings, business interruption, loss of information or other economic losses of any kind whatsoever) arising from the use, in any form or for any purpose, of the data and information contained on the website.

The entire content of the website is protected by copyright, with all rights reserved by 21Shares. You may save or print individual pages or sections of the website only if copyright and proprietary notices remain intact. Any saving or copying of data acknowledges that copyrights and ownership rights remain with 21Shares. The website does not grant any license or right to use images, trademarks, logos, or software, and downloading or copying any part does not transfer title. 

This website and the materials herein are directed only to certain types of investors in certain jurisdictions in which 21Shares’ products may be distributed. Accordingly, the website is not directed at any person in any jurisdiction in which (by reason of that person's nationality, tax residence or otherwise) publication of or access to the website is prohibited. Persons in respect of whom such local restrictions apply must not access the website.

Agree and continue