Just Another Crypto TradeBot in Python

Jay Loo
bigjloo
Published in
2 min readOct 23, 2021
Photo by Behnam Norouzi on Unsplash

So recently my friend, Mr. J, approached me to help him build a bot to automatically scan the FTX exchange for new coin listings, which the bot will then automatically put in buy orders if the target coin is found.

DEMO 👉 https://youtu.be/2mfL32RVoes

Technical stuff:

  • Used FastAPI to set up test endpoints for testing (super awesome framework, only a few lines of code to get an endpoint up and running)
  • Bot hosted on an Azure Windows 10 VM (totally clueless as to what would be the best choice for this sort of thing, was considering Docker containers. Totally failed at trying to set it up on an Ubuntu Server VM)

To be improved:

  • Purchase algorithm — when markets are turbulent and expect huge price change, what is the best way to put in orders?
  • API — Research and explore the possibility of using FIX API or websockets.
  • Testing — still finding it hard to build it into my development routine.
  • Requirements gathering — I should try to build/use an existing template. Luckily this project was quite small and wasn’t too hard to make changes.

Overall it's been a pleasant job, revisiting Python after a long absence.

I will be posting updates soon on how the bot performs

I am always open to criticism and feedback. Please do contact me at junzhongloo@gmail.com if you would like to connect. Peace ✌️

--

--