Post
Topic
Board Trading Discussion
Re: Gekko - a javascript trading bot for nodejs
by
Thom
on 26/01/2014, 12:30:30 UTC
Uh oh! Semi-critical error:

Code:
2014-01-26 11:15:30 (ERROR): cancel order failed: Nonce must be incremented

I've noticed an identical error in cryptrade, so I'm guessing the actual error string is from cex itself, so maybe cex skips the odd nonce.
Difference is: when this happens, cryptrade carries right on regardless, but gekko hangs.
What it (probably) needs is to increment the nonce again and retry.

Also: this happened when there was an order open, which got left hanging.
When gekko started, it interpreted this as
Code:
GHS: -7.12206245
which obviously is weirdass, and makes things like this happen:
Code:
wanted to buy GHS but the amount is to small (-1.0696497) at cex.io
A "cancel / ignore open orders on start" line in the config and a tweak to the startup maths would help such confusion.

Edit: Once the order was cancelled by hand and gekko restarted, it traded it as usual.

Edit again: having restarted gekko a few times, it's clear that a "get trading sim start balance from real balance" option would help lots.