livinginformation / merkato

Open-source cryptocurrency market making bot
GNU General Public License v3.0
14 stars 6 forks source link

Asynchronous control flow #101

Open nasaWelder opened 6 years ago

nasaWelder commented 6 years ago

Since mostly what we're doing is making requests, non blocking requests could greaty speed up bot operation.

https://hackernoon.com/asynchronous-python-45df84b82434

I understand async flow much better after making GUIs, especially lunlumo

livinginformation commented 6 years ago

For financial applications, series is preferred to parallel usually, I would expect.

nasaWelder commented 6 years ago

With python asyncio paradigm we control the breakpoints, so we could just make each bot run in parallel, so when one is waiting for a response, others can do their thing instead of everyone waiting.

nasaWelder commented 6 years ago

I could take this once step further, and rebalance ordrs while still placing them. now we're cooking with grease!