Username: Password:

Author Topic: Unable to sell anything. "Insufficient funds" error.  (Read 12126 times)

Offline tblim

  • Trust: (0)
  • Novice
  • *
  • Posts: 42
    • View Profile
Unable to sell anything. "Insufficient funds" error.
« on: September 18, 2017, 11:19:18 AM »
Having run for few days, the bot is unable to sell any asset it previously bought. Once it is ready to sell, it gives the following error

Quote
Error on strategy BB for BCHXBT on kraken while selling -| Error: Order:Insufficient funds

I know there are people that use Kraken but haven't seen this issue reported before. A similar issue was reported for Bittrex but was fixed according the the changelog of 5.0.4.

Any suggestions?

Offline sloaleks

  • Trust: (0)
  • Junior Member
  • **
  • Posts: 615
    • View Profile
Re: Unable to sell anything. "Insufficient funds" error.
« Reply #1 on: September 18, 2017, 11:47:35 AM »
Yeah, you need to raise BTC TRADE LIMIT. Coins are not worth a lot since last weekend. Theres a guide on kraken
https://support.kraken.com/hc/en-us/articles/205893708-What-is-the-minimum-order-size-

For exmple, an order for BCH must be 0.002 BCH or larger. Anorder for ICN must be for 2 ICN or larger. So raise a bit BTC TRADE LIMIT to 0.0125, or even 0.02 for example, to be on the safe side. Don't forget count in both fees.

Offline tblim

  • Trust: (0)
  • Novice
  • *
  • Posts: 42
    • View Profile
Re: Unable to sell anything. "Insufficient funds" error.
« Reply #2 on: September 18, 2017, 11:59:51 AM »
Thank you for the reply and the useful link. My balance of BCH is something more 0.16. Here is the log of the bot

Code: [Select]
2017/09/18 07:36:51: There are some trading opportunities for BCHXBT at kraken. Scanning Trade History
2017/09/18 07:36:51: Last Bid price BCHXBT: 0.12225 | Last Ask: 0.1225
2017/09/18 07:36:51: Balance XBT: 0.0145812399
2017/09/18 07:36:51: Balance BCH: 0.1679013849
2017/09/18 07:36:51: On Orders BCH: 0
Processing strategy BB for BCHXBT on kraken
2017/09/18 07:36:51: To sell we need 0.0000513148607600625 XBT for fees - We have: 0.0145812399 XBT
┌───────────────┬────────────┬────────────┬────────────┬─────────┬──────────────┬─────────────────────┬────────┐
│ ɢƱβǾͳ v5.0.4 │ SMA        │ LowBB      │ HighBB     │ Last    │ BCH          │ Last Buy            │ Pair   │
├───────────────┼────────────┼────────────┼────────────┼─────────┼──────────────┼─────────────────────┼────────┤
│ Sell cycle    │ 0.12080260 │ 0.11944032 │ 0.12216488 │ 0.12225 │ 0.1679013849 │ 0.11899999999999998 │ BCHXBT │
└───────────────┴────────────┴────────────┴────────────┴─────────┴──────────────┴─────────────────────┴────────┘
Error on strategy BB for BCHXBT on kraken while selling -| Error: Order:Insufficient funds


I assume that it tried to sell all of BCH that is 0.168 which is well above the 0.002 limit.

Offline sloaleks

  • Trust: (0)
  • Junior Member
  • **
  • Posts: 615
    • View Profile
Re: Unable to sell anything. "Insufficient funds" error.
« Reply #3 on: September 18, 2017, 12:26:34 PM »
I also had a wierd occurrence similar to yours. Kraken let the bot buy for less than 0.01 BTC (0.0099 worth of BTC of ETH to be exact), but wouldn't let it sell at 1.01 worth ... had to sell manually. I raised the BTC trading limit and have not had an issue since.

Offline tblim

  • Trust: (0)
  • Novice
  • *
  • Posts: 42
    • View Profile
Re: Unable to sell anything. "Insufficient funds" error.
« Reply #4 on: September 18, 2017, 12:39:07 PM »
I see. I would expect to see a different kind of error for the situation you describe. It seems to me to be a bug in the bot due to rounding, similar to the bug in bittrex.

I am glad it is working for you. I will try to increase the trading limit as a workaround. Thanks.

Offline tblim

  • Trust: (0)
  • Novice
  • *
  • Posts: 42
    • View Profile
Re: Unable to sell anything. "Insufficient funds" error.
« Reply #5 on: September 18, 2017, 01:49:19 PM »
Do other people using Kraken have this problem?

Offline sloaleks

  • Trust: (0)
  • Junior Member
  • **
  • Posts: 615
    • View Profile
Re: Unable to sell anything. "Insufficient funds" error.
« Reply #6 on: September 19, 2017, 07:06:10 AM »
I see. I would expect to see a different kind of error for the situation you describe. It seems to me to be a bug in the bot due to rounding, similar to the bug in bittrex.

I am glad it is working for you. I will try to increase the trading limit as a workaround. Thanks.
It is a bug, but not of the bot. It is a Kraken bug. Kraken has known issues. I gradually set the bot back to "micro trades" of 0.01 BTC, where I had the most trouble. Just, you know, for science. For the time being, it is trading fine ...

Offline tblim

  • Trust: (0)
  • Novice
  • *
  • Posts: 42
    • View Profile
Re: Unable to sell anything. "Insufficient funds" error.
« Reply #7 on: September 19, 2017, 01:48:57 PM »
Quote
It is a bug, but not of the bot. It is a Kraken bug.
Why do you say that? I am also using 0.01BTC trades and it fails, as you saw in my previous posts. What drives me to believe that the bug is in the bot, is the fact that a manual transaction succeeds while the bot reports "Insufficient funds" using the same amount. It is possible that this is caused due to rounding, a newly implemented feature that become necessary due to recent Kraken policies.

What strategy are you using? I was using BB.

Offline sloaleks

  • Trust: (0)
  • Junior Member
  • **
  • Posts: 615
    • View Profile
Re: Unable to sell anything. "Insufficient funds" error.
« Reply #8 on: September 19, 2017, 03:45:47 PM »
rounding works fine, check your logs. The message you are seeing is from Kraken, not from the bot.In the offending pair I used BBstepgain. It didn't happen again. I opened an issue on Github, but it got closed by Gunthar as a non issue of the bot.
« Last Edit: September 19, 2017, 03:51:43 PM by sloaleks »