javascript - Can a node.js cryptocurrency bot fall behind the market -
if trading bot built on node.js reacting every single market update won't start drift away reality without client-side conflation on separate child thread?
in other words, receive order book update, update current book, bot execute trading logic, , during time won't handling next update. bot receives , handles more market data updates won't start lag behind , worse each update?
i suppose there gaps in market activity allow catch that's not guaranteed.
examples i've seen of nodejs bots not handle wonder if it's non-issue , there not know or understand.
of course spawn child process handling prices , conflating them , trading logic , talk via ipc. however, assuming measured correctly, there's around 500 microseconds in latency last time tried. , well, we'd faster.
depends on how make it, if execute trading logic on infinite loop feeds database systems ~ , cache systems redis, can make parallel requests store db, while calculating, have delay between fetching, storing, calculating, reacting, question is, fast enough make decisions , react fast enough execute? answer don't know... depends
Comments
Post a Comment