Cryptocurrency arbitrage with KoinKnight

Bikash Gupta
KoinKnight
Published in
5 min readNov 3, 2018

Cryptocurrency Arbitrage is buying low and selling high between exchanges within a short span of time. With so many inefficiencies present in the crypto market, there is an unlimited scope of arbitrage opportunities. Arbitrage is a less risky and more logical way of increasing your investment value rather than just holding your coins especially after knowing the fact that cryptocurrency is highly susceptible to time-volatility.

Why KoinKnight?

KoinKnight enables crypto enthusiastic users to have an edge on others by showing such arbitrage opportunities and helps in decision making all in real-time being quickest among all. Some of the distinctive features of KoinKnight are —

  1. Real-time arbitrage calculation.
  2. Trading charges and crypto withdrawal charges are included in the calculation of profit.
  3. 24 cryptocurrency exchanges and 320 cryptocurrencies are supported
  4. Alerts can be set on arbitrage on favorite exchanges.
  5. Alert notifications can be received on Browser, Telegram, and Email.
  6. Desired filters can be created and saved for arbitrages so that user does not have to go through selecting filters again and again.
  7. Arbitrage can also be saved in the ever-changing market so that user knows at what price they can buy and sell.
  8. Minimum arbitrage time is shown which a user will consume while performing that arbitrage.
  9. Support for inputting desired investment amount on which arbitrage can be done.
  10. Support four different types of arbitrage — Direct, Triangular, Loop and Intra-exchange which we will explain in more detail below.

There are two ways to do arbitrage in KoinKnight —

Without volume consideration — This setting applied when “with volume” flag is off

  • Arbitrages are calculated using the highest bid and lowest ask.
  • No consideration of whether the trading volume is sufficient or not to do arbitrage.
  • Useful for those arbitragers who want to do arbitrage with limit based orders and have patience with them.
  • Helps in doing arbitrage in low trading volume exchanges.

With volume consideration — This setting applied when “with volume” flag is off

  • Arbitrages are calculated using the in-depth reading of order book on ask and bid sides.
  • Trading volume is considered and only those arbitrages are shown which are actually profitable at that moment.
  • Arbitrages can be done instantly if enough funds and coins are kept on exchanges involved.
  • Helps in doing arbitrage in all kind of exchanges.

In this article, we will be going through the arbitrages generated when the “With Volume” flag is off. For arbitrages generated when trading volume is considered, you can read the below medium article —

You can also check out KoinKnight Video Tutorial below —

We have specific algorithms dedicated to finding four different types of arbitrages. The arbitrages are -

Direct Arbitrage — It is the simplest form of arbitrage where one buy a coin from one exchange at low and sell at high in another exchange. For example, in the image shown below —

  1. Buy NEO in Kucoin at 0.00242801 BTC in BTC market and send it across to EXMO.
  2. Sell NEO in EXMO at $16.411 in USD market to earn a profit of 5.61%. The profit includes all trading and crypto transfer charges.
Direct Arbitrage

Triangular Arbitrage — It is little complex and little more time consuming than the direct arbitrage since it involves 3 exchanges. This tool is used generally where users see arbitrage between two exchange but they do not have money at the starting exchange. Let’s take an example — In above direct arbitrage, there is an arbitrage between Kucoin and EXMO exchanges. But the user does not have any money in Kucoin to start the arbitrage. But still, he/she want to complete the arbitrage to earn a profit. Let’s say, there is some money at Huobi and there is currently no profitable arbitrages originating from it currently. So basically arbitrage is present between Kucoin and EXMO but money is at Huobi. This is where triangular arbitrage can come to play. A user can search for arbitrage from Huobi to EXMO and find the best profitable route to do arbitrage. Using image shown below —

  1. Buy DCR from Huobi at 0.006312 BTC in BTC market and send it across to Kucoin.
  2. Convert DCR to NEO (sell DCR and buy NEO) and again sent it across to EXMO.
  3. Sell NEO in EXMO at $16.411 in USD market to earn a profit. The profit includes all trading and crypto transfer charges.
Triangular Arbitrage

Loop Arbitrage — This is a kind of triangular arbitrage but with a condition that starting exchange and ending exchange is the same. This is required by the user when he/she wants to do arbitrage and also wants to bring the invested amount with profit back to the exchange from where it was started. Let’s take an example using image shown below —

  1. Buy BTG from EXMO at $26.95 in USD market and send it to Bitfinex.
  2. Convert BTG to NEO (sell BTG and buy NEO) and again send it across to EXMO.
  3. Sell NEO in EXMO at $16.411 in USD market to earn a profit of 4.39%. The profit includes all trading and crypto transfer charges.
Loop Arbitrage

Intra-exchange Arbitrage — It is a type of arbitrage which is found within the same exchange between two markets. Let’s say exchange OKEx have USDT and ETH markets and a coin VEE which can be traded in both markets. Sometimes within these markets, there is a price difference of the coin between these markets. A coin can be bought in one market and sold in another market within the same exchange for profit without actually transferring it and hence avoiding the time delay which usually happens when a coin is transferred from one exchange to another. In the image shown below —

  1. Buy VEE from OKEx at 0.00004377 ETH in ETH market
  2. Sell VEE in the same exchange at 0.0088 USDT in USDT market to make a profit of 0.977%. The profit includes all trading charges.
Intra-exchange Arbitrage

Do let us know in the comment section or by emailing us on contact@koinknight.com for any concerns.

--

--