Holgor's libraries make use of hive.engine. I had to guess at what to use for my needs in this app. In the end it was quite simple. Writing a trading bot could be next, though I may keep that one closed-source.
Let me know if my code works for you.. interested!
I just needed to install the hiveengine library and comment out winsound for it to work. It's cross-platform!