I've written similar project in python for crypto coin trading... I should mention, I didn't profit much:), nevertheless, I know very well on how to do the job programathically... Also, order flow is not the best indicator for developing market strategy, but then again, I know hot to do it.