Jonathan Johnston's Blog

My First Crypto Arbitrage Bot

By Jonathan Johnston

Posted on April 22, 2023

Updated June, 11, 2023

Documentation of my first attempt at a crypto arbitrage bot.

Introduction

ArbitrAvatar

Proportedly, crypto arbitrage bots are a thing and though competitive, work on occasion. So heres my go at one. I'm still debating on calling it ArbitRaja or ArbitrAvatar.

Roadmap

First I will write the program to monitor a few exchanges for arbitrage opprotunities. I will keep increasing the number of exchanges until I find its producing occasional opprotunities.

If its producing, at least an occasional opprotunity, I'll test trasfer funds and make sure thats error free.

I'll then test flash loans, and make sure that code is error free.

Finally I'll integrate them all, test each piece as much as possible, implement it and hope for the best and wait for the next opprotunity.

Working

6/11/23 - Finally got around to doing a little coding. Functions to pull the bid and ask from Kraken and Bitfinex exchanges, wrapped those in a general get_bid_ask function, takes a pair symbol (ie BTCUSD), and the exchange name, returns the highest bid and the lowest ask.

4/22/23 - At the moment I'm studying the REST APIs, putting together an outline. Still early on this project, but it will be one of the next ones I start wroking on.