A Step-By-Step Guide To Building a Trading Bot In Any Programming Language

Pick Your Weapon of Choice and I’ll Show You How to Fight

Yakko Majuri
13 min readAug 1, 2020


Photo by M. B. M.

⚠️ Important Note

I am not qualified to offer investment, legal, or any other advice, nor am I trying to do so. This is a programming tutorial aimed at teaching you how to build a trading bot for learning purposes. Any decisions, investments, or risks you take as a result of building a trading bot are your responsibility.

I cannot be held responsible for any decisions you make as a result of reading this tutorial. Remember: Bots can lose a lot of money, so you should be careful.

Quite regularly, we all come across some variation of this article: “10 Projects You Should Build as a Programmer”.

And most times that list includes a Trading Bot.

So, since I think trading bots are great projects, I thought I’d take some time to teach you how to build one.

However, rather than giving you all the code line by line, I decided it would be best to go through all the concepts you should be familiar with to take on this project.

After all, the whole point is that you code it yourself.

Hence, this article will go through everything you need to know and have to build a trading bot (from the exchange to a simple trading strategy), as well as the basic architecture, concepts, and design of a simple bot.

And the great thing is: I’ll be using pseudocode, so you can follow this tutorial in the language of your choice.

As such, you can feel comfortable and focus on the actual programming, rather than figuring out all the setup for yourself.

So let’s go!

Step 1: Pick a Weapon

The first step in this tutorial is just selecting a language to use. This is entirely up to you.

Some languages like Python could be helpful if you want to later expand your bot to use Machine Learning, for example, but the main goal here is that you pick a language you’re comfortable with.



Yakko Majuri

Programmer, writer, traveler, hitchhiker, climber, photographer. i.e. lost. (P.S. amateur at most of the above) //