kylerberry / JACT

Just Another Crypto Trader. (gdax crypto trading bot)
3 stars 0 forks source link

remaining size too small to place order #29

Closed kylerberry closed 6 years ago

kylerberry commented 6 years ago

>> Error: Error: HTTP 400 Error: size is too small. Minimum size is 0.1

if a sell gets partially filled to the point that there is < .1 size, the remaining orders will get canceled and the bot still thinks it has a position to SHORT, which it can't. This also halts all LONG signals because it thinks it has an existing position to get rid of.

Proposed solution 1: if the size of partial sells becomes less than .1 then perhaps the bot should release that portion back into the holders account and consider the position resolved.

proposed solution 2: if the size is < .1 then the bot should append that amount to the next Sell order:

buy : { size: 1 }, sell : { size: 1.95 } // remaining .05, resolve and append to the next sell order buy: { size: 1 }, sell: { size: 1.05 }