Username: Password:

Author Topic: Insufficient funds on 3.2 patch 2022 Kraken BTC_EUR  (Read 9885 times)

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Insufficient funds on 3.2 patch 2022 Kraken BTC_EUR
« on: May 25, 2017, 10:32:18 PM »
I read the Post about Re: Error Insuficient ZEUR funds on kraken and the Other post about "Re: EUR_BTC" but those posts are buying bitcoin with euro.

One of the users on telegram chat was asking about buying euro with bitcoin (going the other way) so I thought I'd try it.  I set up my config file and gunbot happily started running just fine.  It ran for a day or so, but when it came time to buy, when the buy order happened, the API returned "insufficient funds".

Here's the log from the file...

Code: [Select]
2017/05/24 18:15:34  [ --2017/05/24 18:15:34--kraken--BTC_EUR  --  Gunbot v3.2 cycle #134 --------------- ]
2017/05/24 18:15:34  ::::: collecting market data...
2017/05/24 18:15:38  LP 2094.88  Bal.XXBT 0.072567835  Bal.ZEUR 0
2017/05/24 18:15:38  Open orders
2017/05/24 18:15:38  boughtPrice undefined
2017/05/24 18:15:38  price  falls (-7)
2017/05/24 18:15:38  PriceToBuy,21008872.3234,priceToSell,--not set--
2017/05/24 18:15:38  LP 20948800.0000000,<=,prBuy 21008872.0000000  secMargin 210.0887232342344  grows yes
2017/05/24 18:15:38  no altcoins: 0
2017/05/24 18:15:38  price to buy: 2100.887232342344
2017/05/24 18:15:38  price is sweet to buy
2017/05/24 18:15:38  price is growing
2017/05/24 18:15:38  Buying on kraken 0.000523867715573207 of ZEUR for 2094.88
2017/05/24 18:15:38  ***************************************************
2017/05/24 18:15:38  [object Object]
2017/05/24 18:15:38  ***************************************************
2017/05/24 18:15:41  2017/05/24 18:15:41 Error: Kraken API returned error: Order:Insufficient funds
2017/05/24 18:15:41  !!! Cycle 135 failed. Will repeat in 92.38413441348112s
2017/05/24 18:17:13  [ --2017/05/24 18:17:13--kraken--BTC_EUR  --  Gunbot v3.2 cycle #135 --------------- ]


and here's the log from the console...

Code: [Select]
[ --2017/05/24 18:15:34--kraken--BTC_EUR  --  Gunbot v3.2 cycle #134 --------------- ]
::::: collecting market data...
++++
LP 2094.88  Bal.XXBT 0.072567835  Bal.ZEUR 0
Open orders
boughtPrice undefined
price  falls (-7)
PriceToBuy 21008872.3234 priceToSell --not set--
LP 20948800.0000000 <= prBuy 21008872.0000000  secMargin 210.0887232342344  grows yes
no altcoins: 0
price to buy: 2100.887232342344
price is sweet to buy
price is growing
Buying on kraken 0.000523867715573207 of ZEUR for 2094.88
***************************************************
{ pair: 'XXBTZEUR',
  type: 'buy',
  ordertype: 'limit',
  volume: 0.000523867715573207,
  price: 2094.88 }
***************************************************
2017/05/24 18:15:41 Error: Kraken API returned error: Order:Insufficient funds
!!! Cycle 135 failed. Will repeat in 92.38413441348112s
[ --2017/05/24 18:17:13--kraken--BTC_EUR  --  Gunbot v3.2 cycle #135 --------------- ]

I have bitcoin balance, as shown in the log... so I'm not certain why it's complaining.  I'm trying to buy Euro.

Did I do the asset pair wrong?  Or is this just not supported, and this asset pair only will ever go the primary way which is buying bitcoin with euro, and not buying euro with bitcoin?

If it matters, here's the relevant config and how it's launched
Code: [Select]
   DEFAULT_MARKET_NAME:"kraken",
   DEFAULT_CURRENCY_PAIR:"BTC_EUR",   //  single pair format for all markets !
   BTC_TRADING_LIMIT: 0.05,// max amount of BTC balance to use for each pair
   KRAKEN_ASSET_PAIR:'XXBTXEUR',

./gunthy-linuxx64 BTC_EUR kraken

Seems that it should still work, and treat EUR like any other "coin" to buy and sell.  I figured it would buy 0.05 bitcoin worth of Euro.

Cointracking affiliate link (10% discount for you) https://cointracking.info?ref=C937652