Re:Cryptocurrency trading bot in ~40 lines of JavaScript
by thomasfromcdnjs on Thursday July 25, 2019 @04:41AM
(#20523694)
Yep, you are 100% correct.
This is a very naive bot, it will rarely ever execute at that margin but you will never lose either. You are just betting on the fact that hopefully someone buys out the orderbook by accident or because they really want that asset.
A more realistic margin is 0.0000001% but when you start doing that, you will start losing money so you will want a much better algorithmic trading strategy.
This is a very naive bot, it will rarely ever execute at that margin but you will never lose either. You are just betting on the fact that hopefully someone buys out the orderbook by accident or because they really want that asset.
A more realistic margin is 0.0000001% but when you start doing that, you will start losing money so you will want a much better algorithmic trading strategy.
I will probably write a hedging tutorial next.