Motivation for this post

This post is purely for fun and for sharing some ideas I have had about this space. Many have given up on cryptocurrency since the end of 2018 when the price of BTC began falling from its peak of nearly $20,000. Today BTC is down to $4,060, trade volumes have dropped, and the subreddits have become stale and inactive. Perhaps one day the interest in this subject will return and all of this will have reversed. In that case, it can be useful to understand how arbitrage works. I have written a cryptocurrency bot in python to trade for profit and thought I would share what I know.

placeholder image 1
The gradual fall of bitcoin value from January 2018 to March 2019. coinmarketcap.com

What is arbitrage?

If you haven’t heard about arbitrage, it’s quite simple. Arbitrage is the buying and selling of an asset while taking advantage of the differing prices on the market. For example, many people buy items on craigslist to resell on ebay. The reason this works well for many, is because ebay is a much larger market(which theoretically leads to fairer prices on average). This means that finding a good deal on a popular item on craigslist will often result in a profit on ebay.

For a cryptocurrency, the process goes like this.

  • Buy some cryptocurrency
  • Move it to another exchange
  • Sell it for a slight profit

Coinmarketcap keeps a list of all of the reasonably large cryptocurrencies as well as their values on a large list of exchanges online. coinmarketcap.com

Examples: Nano, Bitcoin, Ethereum

Why do the values of each cryptocurrency fluctuate?

Supply and demand. When a coin is being bought more than it is sold, the value starts to rise. The opposite is true when it is sold more than it is bought.

The amount of fluctuation depends on the exchange volume. On a large exchange, the fluctuation is very little because large volumes are being bought and sold which means that its value is well represented. However, on a smaller exchange some coins can vary by up to 8% from a single relatively large buy or sell which opens up opportunities for arbitrage.

Cryptocurrency Arbitrage Problems

In my previous example using ebay and craigslist, there is cost for shipping and driving the package to UPS for dropoff that must be factored into the equation. For cryptocurrency, it is trivial to find buyers and sellers. However, there are some hurdles involved in cryptocurrency arbitrage that are unique to the space.

There are three main hurdles to consider:

1. Exchanges charge a rate for trading cryptocurrency. Trading fees generally vary between free and .2% of the trade.

2. Although large exchanges in my experience haven’t charged for transfer, smaller exchanges often charge a flat rate to transfer currency no matter how much cryptocurrency you move.

3. Most importantly in most cases, it can take a significant amount of time(over an hour) for the first exchange to move the currency over to the second exchange.

Note: It is possible to find exchanges where trades and transfers are free. However, for coins like BTC, LTC, and ETH the time to move currency between exchanges will always be an issue.

Getting around #3

One method for getting around 3 is to trade your slow coin(BTC for example) into a faster moving coin(NANO) and move the NANO instead of the BTC. In this example, you still have to worry about problem 1 and 2 but at least you can get the funds to transfer more quickly. However, 3 is still dependent on the exchange becuase although the coin may be nearly instant, some exchanges wait on the backend for a period of time before initiating the transfer. This means it could still save five to ten minutes for the transfer to occur, which can often wipe out the profits in the process.

Final thoughts

There are methods which are faster than the one mentioned above. It is possible to realize profits for a coin like BTC nearly instantly. Can you think of a superior method? What kinds of problems arise with your solution?

Like this post?

If you would like to know more, feel free to reach out over twitter. I would like to make a follow up post for this topic as there is much to talk about.

2022

Etsy

less than 1 minute read

A process to create products on Etsy

Brain dump 2

1 minute read

Brain dump 1 (old brain dump from 04-2020 with checkboxes filled as of today 01-2020)

Back to top ↑

2021

Back to top ↑

2020

A mini follow up to my habit tracker

2 minute read

Habit tracking part 2: Reiterating my goals for my habit tracker This is a follow up to the first post I made about this topic. I have been using the habit...

How to Debug

3 minute read

How to Debug: I have been listening to an audiobook The Complete Software Developers Career Guide on my way to work. I highly recommend this book to develop...

Back to top ↑

2019

The Magical Manager

2 minute read

The Magical Manager So, who is this guy? When I began working with Jack Zoellner, I was told by my coworkers that Jack was really a great software develope...

Today I started using a habit tracker

4 minute read

Today I started using a habit tracker I have found myself allowing some bad habits to form which are affecting my effectiveness and productivity. One of my ...

Users API for my twitch game

4 minute read

Users API for my twitch game I’ve been working on this game for a few weekends. Here is the flask API I will be using to create users, update their informat...

Risk of Rain 2 Mods

2 minute read

Now on Steam: Risk of Rain 2 is a multiplayer roguelike 3D sequel to Risk of Rain. Prereqs: Do...

The Basics of Cryptocurrency Arbitrage

3 minute read

Motivation for this post This post is purely for fun and for sharing some ideas I have had about this space. Many have given up on cryptocurrency since th...

ASCII Otter

less than 1 minute read

Enjoy this otter ascii art. Simple and elegant yet repeatable. This hand drawn ascii art does not inspire, but still gives you the image of an otter swimmin...

Back to top ↑