News for hackers. Stuff that matters.
Re:Cryptocurrency trading bot in ~40 lines of JavaScript by mercutio88 on Thursday July 25, 2019 @04:17AM (#20523580)
Cool stuff. 20% Deviation from the market price is quite high though. I suppose orders will never get a chance to execute. What would be a more realistic percentage? Could it be based on the current volatility for example? Or am I missing something.
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.

I will probably write a hedging tutorial next.

Re:Cryptocurrency trading bot in ~40 lines of JavaScript by mercutio88 on Thursday July 25, 2019 @04:44AM (#20523707)
the current implementation will do great on flash crashes :-)