Username: Password:

Author Topic: Bugs/Issues tracker v3.2  (Read 94776 times)

Offline OutOfSync

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #20 on: May 14, 2017, 10:38:01 PM »
2 issues to report:

1) "Altcoin on orders" is reported incorrectly in kraken market (did not check other markets):

Situation: I have some ETH that I manually placed a selling order for. Now I started a different pair in kraken from scratch with brand new config and no save file. The ETH on orders is now reported as "balance on order" for the newly started pair and the bot is confused because it thinks we have altcoins but no boughtPrice. This could be mitigated if the "balance on order" is reported correctly for the pair the bot is running.

2) I cannot find the Low BB and High BB values in the "-save.json" file.

Saving these important values would make it easy to write a GUI that reports them over time. I am thinking along the lines of an InfluxDB database with Grafana dashboard tracking all parameters. Would be really nice to tweak the bot.

Thanks Gunthar for an awesome update!

Solved both in patch 2020
Thanks for reporting!

Thanks for including the BB values, this will be really helpful! I was wondering if you can also include the mean value, I think I can calculate this from the latestPrices array but it would just be nice to show lowBB, highBB and mean.

Regarding the "onOrder" issue:
Unfortunately the issue persists, the ETH now shows as alt balance although it still is on selling order ("On Orders" is not shown anymore). gbot complains about "Missing boughtPrice" since it cannot find a record of this altcoin balance. I think in this situation the altcoin balance should be reported as zero and not as the alt coin balance which is on selling order.

Nasty problem, but thanks for taking care of the bugs!

Offline strshtr

  • Rookie
  • *
  • Posts: 6
    • View Profile
Kraken Insufficient funds error
« Reply #21 on: May 15, 2017, 07:16:12 AM »
Linux mint
Getting insufficient funds error in kraken for MLN pair when the bot is trying to sell.


Offline nixxda

  • Rookie
  • *
  • Posts: 17
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #22 on: May 15, 2017, 11:26:26 AM »
I still get quadruple buys on "patch 2020"!

poloniex-BTC_LBC-trades.txt

2017/05/15 11:57:06 *** MARKET CALLBACK | buy 376.9525732364028 LBC for 0.00009285 BTC
2017/05/15 11:57:52 *** MARKET CALLBACK | buy 376.9525732364028 LBC for 0.00009285 BTC
2017/05/15 11:58:09 *** MARKET CALLBACK | buy 376.9525732364028 LBC for 0.00009285 BTC
2017/05/15 11:58:27 *** MARKET CALLBACK | buy 376.5875454056381 LBC for 0.00009294 BTC

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #23 on: May 15, 2017, 12:58:17 PM »
I still get quadruple buys on "patch 2020"!

Same here, except it's triple buys:

poloniex-BTC_MAID-trades.txt

2017/05/15 02:34:16 *** MARKET CALLBACK | buy 216.2167162162162 MAID for 0.000185 BTC
2017/05/15 02:38:34 *** MARKET CALLBACK | buy 216.20502948489272 MAID for 0.00018501 BTC
2017/05/15 02:40:17 *** MARKET CALLBACK | buy 216.08823161903732 MAID for 0.00018511 BTC
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline nixxda

  • Rookie
  • *
  • Posts: 17
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #24 on: May 15, 2017, 04:45:37 PM »
another one:

"BB" Strategy on Linux (only one tested) will suddenly fail and loose its "PriceToBuy" and stay this way!

Code: [Select]
2017/05/15 11:58:55 Open buy orders: ,0
2017/05/15 11:58:55
2017/05/15 11:59:10 [ --2017/05/15 11:59:10--poloniex--BTC_STR  --  Gunbot v3.2 cycle #341 --------------- ]
2017/05/15 11:59:10 ::::: collecting market data...
2017/05/15 11:59:10 ***************************************************
2017/05/15 11:59:10 Low BB:0.00002226 - High BB:0.00002296
2017/05/15 11:59:10 ***************************************************
2017/05/15 11:59:12 LP 0.0000225  Bal.BTC 0.20009402  Bal.STR 0(0)
2017/05/15 11:59:12 No open orders
2017/05/15 11:59:12 boughtPrice 0.0000222
2017/05/15 11:59:12 price  falls (-2)
2017/05/15 11:59:12 PriceToBuy,0.2193,priceToSell,0.2242
2017/05/15 11:59:12 LP 0.2250000,>,prBuy 0.2192976  secMargin 0.000008771903999999996  grows yes
2017/05/15 11:59:12 no altcoins: 0
2017/05/15 11:59:12 price to buy: 0.00002192975999999999
2017/05/15 11:59:12 last price is too high
2017/05/15 11:59:12 Gunbot callback at 2017/05/15 11:59:12 cycle # 341
2017/05/15 11:59:12 Callback:
2017/05/15 11:59:12 ---------
2017/05/15 11:59:12 price too high
need faster: no
need slower: no

2017/05/15 11:59:12 next delay will be 15s


2017/05/15 11:59:27 [ --2017/05/15 11:59:27--poloniex--BTC_STR  --  Gunbot v3.2 cycle #342 --------------- ]
2017/05/15 11:59:27 ::::: collecting market data...
2017/05/15 11:59:27 ***************************************************
2017/05/15 11:59:27 Low BB:0.00002226 - High BB:0.00002296
2017/05/15 11:59:27 ***************************************************
2017/05/15 11:59:29 LP 0.0000225  Bal.BTC 0.20009402  Bal.STR 0(0)
2017/05/15 11:59:29 No open orders
2017/05/15 11:59:29 boughtPrice 0.0000222
2017/05/15 11:59:29 price  falls (-2)
2017/05/15 11:59:29 PriceToBuy,0.0000,priceToSell,0.2242
2017/05/15 11:59:29 LP 0.2250000,>,prBuy 0.0000000  secMargin 0  grows yes
2017/05/15 11:59:29 no altcoins: 0
2017/05/15 11:59:29 price to buy: 0
2017/05/15 11:59:29 last price is too high
2017/05/15 11:59:29 Gunbot callback at 2017/05/15 11:59:29 cycle # 342
2017/05/15 11:59:29 Callback:
2017/05/15 11:59:29 ---------
2017/05/15 11:59:29 price too high
need faster: no
need slower: no
(yaehh! found the code button!-)

the same in XMR. this time after a sale:
Code: [Select]
017/05/15 11:24:10 [ --2017/05/15 11:24:10--poloniex--BTC_XMR  --  Gunbot v3.2 cycle #724 --------------- ]
2017/05/15 11:24:10 ::::: collecting market data...
2017/05/15 11:24:11 ***************************************************
2017/05/15 11:24:11 Low BB:0.01572059 - High BB:0.01613443
2017/05/15 11:24:11 ***************************************************
2017/05/15 11:24:12 LP 0.01621756  Bal.BTC 0.12437192  Bal.XMR 13.32393662(0)
2017/05/15 11:24:12 No open orders
2017/05/15 11:24:12 boughtPrice 0.01574101
2017/05/15 11:24:12 price  grows (11)
2017/05/15 11:24:12 PriceToBuy,0.0000,priceToSell,162.1324
2017/05/15 11:24:12 we have altcoins: 13.32393662
2017/05/15 11:24:12 LP 162.1756,>=,prSell 162.132403  secMargin 0  falls yes
2017/05/15 11:24:12 price to sell: ,0.0162132403
2017/05/15 11:24:12 price is sweet
2017/05/15 11:24:12 price fall -> sell
2017/05/15 11:24:13 [object Object]
2017/05/15 11:24:13 [object Object]
2017/05/15 11:24:13
2017/05/15 11:24:13 *** MARKET CALLBACK | sell 13.32393662 XMR for 0.01621756 BTC
2017/05/15 11:24:13 Profit 0.006349521996260989
2017/05/15 11:24:13 Gunbot callback at 2017/05/15 11:24:13 cycle # 724
2017/05/15 11:24:13 Callback:
2017/05/15 11:24:13 ---------
2017/05/15 11:24:13 sell 13.32393662 XMR for 0.01621756 BTC
need faster: no
need slower: no

2017/05/15 11:24:13 next delay will be 30s


2017/05/15 11:24:43 [ --2017/05/15 11:24:43--poloniex--BTC_XMR  --  Gunbot v3.2 cycle #725 --------------- ]
2017/05/15 11:24:43 ::::: collecting market data...
2017/05/15 11:24:43 ***************************************************
2017/05/15 11:24:43 Low BB:0.01571932 - High BB:0.01613815
2017/05/15 11:24:43 ***************************************************
2017/05/15 11:24:45 LP 0.01621756  Bal.BTC 0.34009418  Bal.XMR 0(0)
2017/05/15 11:24:45 No open orders
2017/05/15 11:24:45 boughtPrice 0.01574101
2017/05/15 11:24:45 price  grows (11)
2017/05/15 11:24:45 PriceToBuy,0.0000,priceToSell,162.1324
2017/05/15 11:24:45 LP 162.1756000,>,prBuy 0.0000000  secMargin 0  grows no
2017/05/15 11:24:45 no altcoins: 0
2017/05/15 11:24:45 price to buy: 0
2017/05/15 11:24:45 last price is too high
2017/05/15 11:24:45 Gunbot callback at 2017/05/15 11:24:45 cycle # 725
2017/05/15 11:24:45 Callback:
2017/05/15 11:24:45 ---------
2017/05/15 11:24:45 price too high
need faster: no
need slower: no

2017/05/15 11:24:45 next delay will be 30s


2017/05/15 11:25:15 [ --2017/05/15 11:25:15--poloniex--BTC_XMR  --  Gunbot v3.2 cycle #726 --------------- ]
2017/05/15 11:25:15 ::::: collecting market data...
2017/05/15 11:25:16 ***************************************************
2017/05/15 11:25:16 Low BB:0.01571807 - High BB:0.01614182
2017/05/15 11:25:16 ***************************************************
2017/05/15 11:25:17 LP 0.01618  Bal.BTC 0.34009418  Bal.XMR 0(0)
2017/05/15 11:25:17 No open orders
2017/05/15 11:25:17 boughtPrice 0.01574101
2017/05/15 11:25:17 price  grows (11)
2017/05/15 11:25:17 PriceToBuy,0.0000,priceToSell,162.1324
2017/05/15 11:25:17 LP 161.8000000,>,prBuy 0.0000000  secMargin 0  grows yes
2017/05/15 11:25:17 no altcoins: 0
2017/05/15 11:25:17 price to buy: 0
2017/05/15 11:25:17 last price is too high
2017/05/15 11:25:17 Gunbot callback at 2017/05/15 11:25:17 cycle # 726
2017/05/15 11:25:17 Callback:
2017/05/15 11:25:17 ---------
2017/05/15 11:25:17 price too high
need faster: no
need slower: no

and btw. Thanks for the Timestamps in the logs!-)
« Last Edit: May 15, 2017, 05:02:21 PM by nixxda »

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #25 on: May 15, 2017, 05:26:39 PM »
~snip
aknowledged and fixed in a patch #2021 i'm pushing in a few.
Thanks for reporting this!
« Last Edit: May 15, 2017, 09:21:45 PM by Gunthar »

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #26 on: May 15, 2017, 09:21:05 PM »

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #27 on: May 15, 2017, 09:24:29 PM »
gbot complains about "Missing boughtPrice" since it cannot find a record of this altcoin balance.

MissingBoughtPrice comes because you didnt port the save.json file: basically wasnt the bot to place that sell order.
Please do not use manual orders, they are nto implemented nor they help.

Offline chimj

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #28 on: May 15, 2017, 09:41:54 PM »

I understand manual trades don't work, but I have 0 balance BTC when I log into kraken, yet GB thinks I have a tiny amount of BTC (6e-9). I bought 0.001 BTC added boughtprice to json, GB sold but then came back with the same error.

 

this is 3.2 with patch 2021 applied (had debug on).

root@vmi116019:~/gb32# file gunthy-linuxx64
gunthy-linuxx64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=bfc575652f6dcc5ba1920e786c4102954056a46f, not stripped
chim@vmi116019:~/gb32#
chim@vmi116019:~/gb32#
chim@vmi116019:~/gb32#
chim@vmi116019:~/gb32#
chim@vmi116019:~/gb32# ./gunthy-linuxx64 EUR_BTC kraken
Loading config...
Loading config...
Creating market client for EUR_BTC pair
Activating hot reconfig...
[ --2017/05/15 22:38:42--kraken--EUR_BTC  --  Gunbot v3.2 cycle #1 --------------- ]
::::: collecting market data...
***************************************************
Low BB:0.00000000 - High BB:0.00000000
***************************************************
++++
LP 1583.795  Bal.ZEUR 420.7453  Bal.XXBT 6e-9
No open orders
boughtPrice undefined
price  steady (0)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 6e-9
2017/05/15 22:38:45 Error: Missing boughtPrice
Error: Missing boughtPrice
!!! Cycle 2 failed. Will repeat in 60s
^C
chim@vmi116019:~/gb32#



Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #29 on: May 15, 2017, 10:05:30 PM »

~snip

You "think" the bot doesnt: 6e-9 are 0.000000006 BTC on your balance at Kraken which are 0.00000 BTC displayed on kraken balances (roundings is worse than polo at kraken: 5 digits only)

Offline Dest

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #30 on: May 16, 2017, 07:21:45 AM »
Hi.
In 3.2 with patch 2020
9 pairs were started
On all pairs security margin disappears.
After rebooting the pair all ok


Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #31 on: May 16, 2017, 08:39:47 AM »

Offline Doesnt Matter

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #32 on: May 16, 2017, 06:35:56 PM »
Gun,
Some days ago you changed SECURITY_MARGIN that way that it is working like a real stop-loss at a certain percentage of the bought price. I think this is exactly what people expect when they set this parameter.

But you changed it only for BB, not for the other strategies. When you provided the 'fix' (it isn't, I understand that you had another intention with the original way it was programmed) it was only the BB.js.

Do you mind to change it for every strategy? Otherwise the bot is not acting predictable for people who don't know that the same parameter does work different across the different strategies...

Thanks!

Offline OutOfSync

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #33 on: May 17, 2017, 08:13:47 AM »
Hi Gun,

thanks again for ironing out all the bugs and patiently explaining things! Would it be possible to change v3.2 so that lastestPrices are reloaded when we restart the bot? I think you added this to v3.1 at some point and it was really useful for setting up the BB. I hate it when the bot needs to recalculate stats for hours. I understand that this might be dangerous when the bot was switched off for some time because the values are too old and not accurate anymore. Could this be an optional setting in the config? Something like "LOAD_LATEST_PRICES_ON_START: false" as default but so that we can change it if we are aware of the associated risks? That would be awesome!

Thanks again!

Offline nixxda

  • Rookie
  • *
  • Posts: 17
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #34 on: May 17, 2017, 05:55:34 PM »
@OutOfSync to me it looks like 3.2 BB needs 3 cycles to calculate its values!? but I might be wrong and the values showing up are ...?.. something else!

@Gunthar "Patch 2022" seems to have fixed my spastic quadruple buy order problem! ;) and all my to-big positions sold already with a profit!  ;D
and on the certain eventuality that I haven't said so already, Thanks  for cleaning up all the config files in 3.2! Its really nice to work with now :-* 

Offline OutOfSync

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #35 on: May 17, 2017, 09:16:19 PM »
@OutOfSync to me it looks like 3.2 BB needs 3 cycles to calculate its values!? but I might be wrong and the values showing up are ...?.. something else!

It shows BB values after 3 cycles because you need at least 3 values to calculate standard deviation. However, until stats are calculated (300 cycles with default settings) the bot does not use BB strategy but the GAIN value (2% as default). 300 cycles with default delay of 120 s is 10 hours untils BB stats are done. This is just quite long if you have to e.g. update the binary and hotconfig is therefore not possible...

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #36 on: May 17, 2017, 09:29:15 PM »
@OutOfSync to me it looks like 3.2 BB needs 3 cycles to calculate its values!? but I might be wrong and the values showing up are ...?.. something else!

It shows BB values after 3 cycles because you need at least 3 values to calculate standard deviation. However, until stats are calculated (300 cycles with default settings) the bot does not use BB strategy but the GAIN value (2% as default). 300 cycles with default delay of 120 s is 10 hours untils BB stats are done. This is just quite long if you have to e.g. update the binary and hotconfig is therefore not possible...

A trick if you know you are going to do a quick restart: save your save.json file in another folder > start yor bot > copy/paste yoru old save.json file while the bot is already running. Dont do that if you stop yrou bot for long time tho: you will get weird standard deviation

Offline liquid

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Bugs/Issues tracker v3.2
« Reply #37 on: May 18, 2017, 05:20:41 AM »
v3.2 Patch 2022 on Linux
Sell price is NaN because some calculation failed. This can be prevented by checking lodash: https://lodash.com/docs/4.17.4#isNaN
Buy BB 35 Sell Stepgain
« Last Edit: May 18, 2017, 05:22:36 AM by liquid »

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Bugs/Issues tracker v3.2
« Reply #38 on: May 18, 2017, 12:52:03 PM »
My first time running 3.2 and just got the bot running on Kraken.  This is the first buy.  It's missing bought price on LTC

Code: [Select]
[ --2017/05/18 04:42:57--kraken--BTC_LTC  --  Gunbot v3.2 cycle #104 --------------- ]
::::: collecting market data...
++++
LP 0.014014  Bal.XXBT 0.9995  Bal.XLTC 0
No open orders
boughtPrice undefined
price  falls (-6)
PriceToBuy 139.3456 priceToSell --not set--
LP 140.1400000 > prBuy 139.3455700  secMargin 0.0013934557384615387  grows yes
no altcoins: 0
price to buy: 0.013934557384615387
last price is too high
Gunbot callback at 2017/05/18 04:43:03 cycle # 104
Callback:
---------
price too high
need faster: yes
need slower: no

next delay will be 44.91294049568045s


[ --2017/05/18 04:43:48--kraken--BTC_LTC  --  Gunbot v3.2 cycle #105 --------------- ]
::::: collecting market data...
+++2017/05/18 04:43:54 Error: Error: Error in server response: {"code":"ESOCKETTIMEDOUT","connect":false}
!!! Cycle 106 failed. Will repeat in 107.52132489760052s
[ --2017/05/18 04:45:41--kraken--BTC_LTC  --  Gunbot v3.2 cycle #106 --------------- ]
::::: collecting market data...
++++
LP 0.013927  Bal.XXBT 0.9995  Bal.XLTC 0
No open orders
boughtPrice undefined
price  falls (-8)
PriceToBuy 139.2939 priceToSell --not set--
LP 139.2700000 <= prBuy 139.2939100  secMargin 0.0013929391060606058  grows yes
no altcoins: 0
price to buy: 0.013929391060606058
price is sweet to buy
price is growing
Buying on kraken 3.5906486321533713 of XLTC for 0.013927
***************************************************
{ pair: 'XLTCXXBT',
  type: 'buy',
  ordertype: 'limit',
  volume: 3.5906486321533713,
  price: 0.013927 }
***************************************************
2017/05/18 04:45:56 Error: Error in server response: {"code":"ESOCKETTIMEDOUT","connect":false}
!!! Cycle 107 failed. Will repeat in 107.52132489760052s
[ --2017/05/18 04:47:43--kraken--BTC_LTC  --  Gunbot v3.2 cycle #107 --------------- ]
::::: collecting market data...
++2017/05/18 04:47:48 Error: Error: Kraken API returned error: API:Invalid nonce
!!! Cycle 108 failed. Will repeat in 107.52132489760052s
[ --2017/05/18 04:49:35--kraken--BTC_LTC  --  Gunbot v3.2 cycle #108 --------------- ]
::::: collecting market data...
++2017/05/18 04:49:40 Error: Error: Kraken API returned error: API:Invalid nonce
!!! Cycle 109 failed. Will repeat in 107.52132489760052s
[ --2017/05/18 04:51:28--kraken--BTC_LTC  --  Gunbot v3.2 cycle #109 --------------- ]
::::: collecting market data...
++++
LP 0.013973  Bal.XXBT 0.94946381  Bal.XLTC 3.59064863
No open orders
boughtPrice undefined
price  falls (-8)
PriceToBuy 139.2312 priceToSell --not set--
we have altcoins: 3.59064863
2017/05/18 04:51:33 Error: Missing boughtPrice
!!! Cycle 110 failed. Will repeat in 107.52132489760052s
[ --2017/05/18 04:53:20--kraken--BTC_LTC  --  Gunbot v3.2 cycle #110 --------------- ]
::::: collecting market data...
++++
LP 0.013881  Bal.XXBT 0.94946381  Bal.XLTC 3.59064863
No open orders
boughtPrice undefined
price  falls (-8)
PriceToBuy 139.1769 priceToSell --not set--
we have altcoins: 3.59064863
2017/05/18 04:53:25 Error: Missing boughtPrice
!!! Cycle 111 failed. Will repeat in 107.52132489760052s
[ --2017/05/18 04:55:13--kraken--BTC_LTC  --  Gunbot v3.2 cycle #111 --------------- ]
::::: collecting market data...
++++
LP 0.013929  Bal.XXBT 0.94946381  Bal.XLTC 3.59064863
No open orders
boughtPrice undefined
price  falls (-7)
PriceToBuy 139.1112 priceToSell --not set--
we have altcoins: 3.59064863
2017/05/18 04:55:17 Error: Missing boughtPrice
!!! Cycle 112 failed. Will repeat in 107.52132489760052s
[ --2017/05/18 04:57:04--kraken--BTC_LTC  --  Gunbot v3.2 cycle #112 --------------- ]
::::: collecting market data...
++2017/05/18 04:57:09 Error: Error: Kraken API returned error: API:Invalid nonce
!!! Cycle 113 failed. Will repeat in 107.52132489760052s
[ --2017/05/18 04:58:57--kraken--BTC_LTC  --  Gunbot v3.2 cycle #113 --------------- ]
::::: collecting market data...
++++
LP 0.013875  Bal.XXBT 0.94946381  Bal.XLTC 3.59064863
No open orders
boughtPrice undefined
price  falls (-7)
PriceToBuy 139.0541 priceToSell --not set--
we have altcoins: 3.59064863
2017/05/18 04:59:00 Error: Missing boughtPrice
!!! Cycle 114 failed. Will repeat in 107.52132489760052s

I've stopped gunbot and restarted but still, boughtPRice undefined and priceToSell not set.  Although, we know the price was 0.01393514.

Is it the nonce errors?  Did I do something wrong with the API?



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

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Bugs/Issues tracker v3.2
« Reply #39 on: May 18, 2017, 01:30:58 PM »
Kraken, 3.2, looks like low value coins uses wrong price in the API call.  Yes, I know it's DOGE and yes, I know it's a memecoin.  I have my settings for high percentage pumps and I like to play around with them.

2017/05/18 05:43:08 Error: Kraken API returned error: General:Invalid arguments:price

Notice the price is in the 7.7e-7 format instead of a real number format.

Code: [Select]
[ --2017/05/18 05:43:03--kraken--BTC_XDG  --  Gunbot v3.2 cycle #193 --------------- ]
::::: collecting market data...
++++
LP 7.7e-7  Bal.XXBT 0.94946381  Bal.XXDG 0
No open orders
boughtPrice undefined
price  grows (1)
PriceToBuy 0.0077 priceToSell --not set--
LP 0.0077000 <= prBuy 0.0077052  secMargin 7.70521296296296e-8  grows yes
no altcoins: 0
price to buy: 7.70521296296296e-7
price is sweet to buy
price is growing
Buying on kraken 64935.065435064935 of XXDG for 7.7e-7
***************************************************
{ pair: 'XXDGXXBT',
  type: 'buy',
  ordertype: 'limit',
  volume: 64935.065435064935,
  price: 7.7e-7 }
***************************************************
2017/05/18 05:43:08 Error: Kraken API returned error: General:Invalid arguments:price
!!! Cycle 194 failed. Will repeat in 91.57627247026898s
[ --2017/05/18 05:44:40--kraken--BTC_XDG  --  Gunbot v3.2 cycle #194 --------------- ]
::::: collecting market data...
++++
LP 7.8e-7  Bal.XXBT 0.94946381  Bal.XXDG 0
No open orders
boughtPrice undefined
price  grows (2)
PriceToBuy 0.0077 priceToSell --not set--
LP 0.0078000 > prBuy 0.0077030  secMargin 7.703045871559632e-8  grows yes
no altcoins: 0
price to buy: 7.703045871559631e-7
last price is too high
Gunbot callback at 2017/05/18 05:44:46 cycle # 194
Callback:
---------
price too high
need faster: yes
need slower: no

next delay will be 37.32549462607416s



I'll turn off this pair for the time being.


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