Tutorial — making a trading bot asynchronous using Python’s “unsync” library

Matt Gosden
7 min readJun 14, 2020

The Python “unsync” library is a very easy way to create async code. This gives a practical example of how to use on a simple trading bot.

There are many ways to skin the async cat

In Python there are many valid ways of parallelising your code, including:

  • The older way — using the threading and multiprocessing libraries
  • The newer way — using async and await from the asyncio library embedded into…

--

--