Cryptocurrency Arbitrage: A Lucrative Trading Strategy


The volatile crypto markets have continued to capture the imagination of the financial world. The rapid price actions have presented a range of opportunities when it comes to cryptocurrency arbitrage and trading. Unlike the traditional financial market where the final frontier may have already been explored when it comes to advanced trading functionality, the crypto space is far less efficient. Opportunities for arbitrage exist around every corner - but how do we take advantage of these opportunities?

This article will focus on a few of the most simple arbitrage opportunities available in the market. Upon completion of this article, you will not only better understand how arbitrage works in the cryptocurrency market, but you will be provided the tools to execute an arbitrage strategy of your own.

To keep up to date with all our latest articles, join our Telegram group here.

What is crypto arbitrage?

Before we begin, it’s important to understand how an exchange order book works. We can see in the above illustration that Bid orders are placed on the left side. On the right side, we must place Ask orders. If you want to execute an instant trade, which results in being the taker in the exchange, you can either place a limit order on the other side of the bid-ask spread (from your current position), or execute a market order.

Before we begin, it’s important to understand how an exchange order book works. We can see in the above illustration that Bid orders are placed on the left side. On the right side, we must place Ask orders. If you want to execute an instant trade, which results in being the taker in the exchange, you can either place a limit order on the other side of the bid-ask spread (from your current position), or execute a market order.

Arbitrage is the process of taking advantage of inefficiencies in markets. In the case of cryptocurrencies, this can occur as the price of assets fluctuates over time. If there is a difference between the price of an asset across exchanges (or even potentially within the same exchange), it may be possible to buy and sell the same asset in a way which will result in a net profit.

This process will be dissected in more detail throughout the remainder of this article. We will discuss how to calculate arbitrage opportunities, how to take advantage of these situations, and even how to build your own trading system designed for arbitraging the market.

How is an arbitrage opportunity calculated?

The arbitrage opportunity for any market is calculated by identifying the overlap between the highest bid prices and the lowest ask prices. When the bid price on one exchange is higher than the ask price on another exchange for a cryptocurrency, this is an arbitrage opportunity.

Now, before we start throwing trades at this situation hoping for a quick buck, let’s take a measured approach by calculating the size of the opportunity. One thing we need to remember when calculating the value of the arbitrage opportunity: Executing the arbitrage will result in consuming the order book. For example, let’s look at “Step 2” in the illustration to the left. In this step, we have highlighted the amount of the order book which overlaps. That means the bid price on one exchange is higher or equal to the ask price on another exchange for the highlighted area.

However, once we begin executing on the arbitrage opportunity, what we notice in steps 4 and 5 is that consuming the order book results in the arbitrage opportunity shrinking after each price value is taken. Therefore, we aren’t able to capitalize on all of the value which is highlighted in yellow in step 2 (the area of the depth), but only a fraction of the value.

When calculating the size of the opportunity, we must therefore take this behavior into account. We can do this by systematically simulating the execution of the actual buys and sells we would actually make on the exchange during the arbitrage.

How are trades executed to take advantage of the arbitrage opportunity?

Now that we understand conceptually how arbitrage happens, let’s discuss the most popular types of arbitrage opportunities: Simple and Triangular Arbitrage.

Simple Arbitrage

Simple arbitrage is the buying and selling action we described in our previous examples in this article. Simple arbitrage buys and sells the same crypto asset on different exchanges as quickly as possible to take advantage of the inefficiencies of pricing across exchanges.

This form of arbitrage does not require any additional trades outside those necessary to swap the two assets which are shared by the asset pair which is exhibiting the arbitrage opportunity.

Triangular Arbitrage

Triangular arbitrage is an event which can occur on a single exchange (or across multiple exchanges) where the price differences between three difference cryptocurrencies leads to an arbitrage opportunity. Since many exchanges have a number of markets with a variety of quote currency options. This opens up a long list of triangular trading patterns which can be leveraged to take advantage of inefficiencies in an individual exchanges pricing.

This illustration demonstrates how triangular arbitrage can lead to a return in profits.

This illustration demonstrates how triangular arbitrage can lead to a return in profits.

In order to better illustrate how triangular arbitrage functions to generate profit, we have constructed an illustration to the right. As you can see in this example, we have 3 different asset pairs on a single exchange. On this exchange we have a LTC/BTC, LTC/ETH, and ETH/BTC pair. The trading pattern to take advantage of an arbitrage opportunity is therefore the following:

  1. Begin at one asset. This asset will be the asset to which we eventually return after completing the arbitrage loop.

  2. Trade to a second currency which connects to both the original asset and the next asset in the loop. This is required to prevent transversing on the same path.

  3. Trade to a third currency which connects both the first and second asset. This second trade locks in a zero-risk profit due to the rate inconsistencies across the 3 pairs.

  4. Convert the third currency back for the original asset.

In the illustrated example, we begin with a value of 1.0000 BTC. To calculate the value of the opportunity, go around the triangle and calculate the bid and ask prices for each trading pair. Note that the bottom trade uses the ask price and we divided ETH by LTC in order to calculate the ratio. Once each of these values has been calculated, we simply go around the triangle and multiple or divide based on the operation that is dictated in the illustration. This would look like the following:

1.00000 x 138.23611 ÷ 2.52871 x 0.01894 = 1.03539 BTC

Arriving back at BTC, we can compare the end value to our starting value to determine the size of the opportunity. As we can see in this example, the end value was 1.03539 BTC. If we compare this to the starting value of 1.00000 BTC, we find the value of this opportunity is 0.03539 BTC. That means just by executing on this arbitrage opportunity, we increase our BTC holdings.

Note: Triangular arbitrage can be performed across multiple exchanges, but we won’t touch on those strategies in this article.

Putting it all together

Now that we know how to find and quantify arbitrage opportunities, we can pull everything together to complete our strategy.

Deposit funds.png

First - Fund Exchange Accounts

Place funds on two different exchanges which will be monitored for arbitrage opportunities. These funds will be used to execute a simple arbitrage where the same asset is bought and sold instantaneously when an opportunity arises. Ideally, you would want to have funds on multiple exchanges since the process to transfer funds from one exchange to another is time consuming and can become expensive. Not to mention, it’s easiest to strike at opportunities the split second they happen.

Second - Identify Opportunities

Identify opportunities by looking for a difference in pricing across exchanges. Compare the highest bid prices to the lowest ask prices to see where these values overlap. Anything which is overlapping is a potential arbitrage opportunity.

Third - Quantify Opportunities

Calculate the value of the opportunity by systematically simulating the selling and buying of the asset. This process will consume the order book, so make sure to take this aspect into account.

Fourth - Execute the Strategy

Execute the strategy by instantly placing orders with the exchange. Continue to place orders with the exchange to take advantage of the arbitrage opportunity as long as the opportunity is available.

Fifth - Do It Again

Stop once the opportunity is no longer available. At this time, it’s time to start looking for a new opportunity to do it all over again.

Enjoy the profits!

What tools are available to start building?

Building the necessary infrastructure to implement an arbitrage strategy is time and resource consuming. It’s not feasible to develop everything from scratch, so you may be wondering how you can get up and running in the shortest time possible.

We got you covered!

That’s right, the Shrimpy Developer APIs are designed for this exact scenario. These APIs are specifically designed for developers who are looking to integrate real-time trading across multiple exchanges.


Real-Time Data Analysis

Accessing real-time full-depth market data is simple with Shrimpy. Subscribe to up to 1,000 different markets across 16 different exchanges with the Shrimpy developer websockets.

Try it now!

Trade Execution

Trade execution can take place across any of the 16 exchanges Shrimpy supports in the developer APIs. Instead of a custom integration for each of these exchanges, you can support every exchange with consistent trading endpoints by doing a single integration. No need to worry about odd bugs, inconsistent behavior, or time consuming specialized software for each exchange. It’s a developers dream come true.

Learn more!

Monitor Exchange Accounts

Throughout the entire process, you can monitor your funds on each exchange account using simple endpoints which automatically track your balances. It’s the truly painless way to manage exchange accounts.

Try it out!

Start Building

You now have both the knowledge and resources to begin building the next generation of arbitrage tools. Sign up for the Shrimpy developer APIs today to take advantage of the inefficiencies in the crypto market. If you have any questions on how to get started, don’t forget to join our amazing Telegram community.