zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

In Live "trade" mode impossible buy less than 99% no debug for "buy" operation.

Open juosma opened this issue 8 years ago • 1 comments

System information

System information

**OS Platform and Distribution testing on Ununtu 16.04 machine.
Zenbot version: - Checked on many versions and latest as well: unstable comit:7d773cc769bf8129a643f9e2defe9852474042ec  

greenkeeper/jasmine-3.0.0 c6103c020974a4df105850bbb6127a6486f319f2 Gdax0.6.0 251d30f1307c6fae0700f96b3b4692596dee8aaf NodeJS version: v8.9.4 Python version: probably v2.7.12 Exact command to reproduce: trade (trade --debug) impossible to manual buy if setting buy_pct= not 99 also not working --debug for operation "buy"

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in Zenbot or a feature request.

Describe the problem

Hello, i have some issue with buy/sell_pct. Mayby someone can confirm or propose solution.
Checked on Kraken and Binance exhanges. With 150USBT and mostly LTC, ETC pairs. Many times more than 30. and with different versions of zenbot. (latest unstable; Gdax; greenkeeper 3.0.0 some earlier commits) for me everywhere work the same way. Manual buy in Trade mode working just when buy_pct= 99 and sell_pct = 99. And usually if not have all balance in currency, firs should do sell via S or s, and just after do buy B or b. if buy_pct and sell_pct not 99 maybe more 90, with buy nothing happens just manual market (limit) Buy and that's all. In any settings for Sell not impact. You can set any percent works well. By the way it happens only in live (trade) mode. in --Paper looks everything well. I feel that problem can by somewhere with multiplier for (minimal buy limit) because maybe once have worked when i all had in curency and buy_pct= ~90... And one more bellow example for Buy are not working --debug. By the way it happens only in live (trade) mode. in --Paper looks everything well. Hope that's can help detect issue. on ubuntu 16.04. see bellow example with settings: buy_pct= 10 sell_pct = 30 Press l to list available commands.

Source code / logs

Web GUI running on http://0.0.0.0:20087/ 2018-02-15 14:24:36 220.740 LTC-USDT +0.02% 45 - 46.19 46 2018-02-15 14:24:36 220.740 LTC-USDT +0.02% 45 - 46.19 46 2018-02-15 14:24:36 220.740 LTC-USDT +0.02% 45 - 46.19 46 2018-02-15 14:24:36 220.740 LTC-USDT +0.02% 45 - 46.19 46 2018-02-15 14:24:36 220.740 LTC-USDT +0.02% 45 - 46.19 46 0.74257400 LTC 3.32835320 USDT +19.67% -15.26% manual market BUY command executed 2018-02-15 14:25:24 220.670 LTC-USDT -0.01% 520 - 45.84 45 2018-02-15 14:25:24 220.670 LTC-USDT -0.01% 520 - 45.84 45 2018-02-15 14:25:24 220.670 LTC-USDT -0.01% 520 - 45.84 45 2018-02-15 14:25:24 220.670 LTC-USDT -0.01% 520 - 45.84 45 2018-02-15 14:25:24 220.670 LTC-USDT -0.01% 520 - 45.84 45 0.74257400 LTC 3.32835320 USDT +19.64% -15.26% manual market SELL command executed 2018-02-15 14:26:00 220.890 LTC-USDT +0.09% 630 - 46.97 46 selling 0.74257400 LTC 3.32835320 USDT +19.75% -15.27% 2018-02-15 14:26:16 221.190 LTC-USDT +0.13% 285 - 48.56 48 selli2018-02-15 14:26:16 221.190 LTC-USDT +0.13% 285 - 48.56 48 selli2018-02-15 14:26:16 221.190 LTC-USDT +0.13% 285 - 48.56 48 selli2018-02-15 14:26:16 221.190 LTC-USDT +0.13% 285 - 48.56 48 selli2018-02-15 14:26:16 221.190 LTC-USDT +0.13% 285 - 48.56 48 selling 0.51980400 LTC 52.60730490 USDT +19.92% -15.27% sell order completed at 2018-02-15 14:26:22:

0.22277220 LTC at 221.230 USDT total 49.2838 USDT 0.0000% slippage (orig. price 221.230 USDT) execution: a few seconds

2018-02-15 14:27:06 223.100 LTC-USDT +1.00% 1172 56.82 ++ 56 so2018-02-15 14:27:06 223.100 LTC-USDT +1.00% 1172 56.82 ++ 56 so2018-02-15 14:27:06 223.100 LTC-USDT +1.00% 1172 56.82 ++ 56 so2018-02-15 14:27:06 223.100 LTC-USDT +1.00% 1172 56.82 ++ 56 so2018-02-15 14:27:06 223.100 LTC-USDT +1.00% 1172 56.82 ++ 56 so2018-02-15 14:27:51 222.740 LTC-USDT +0.83% 1579 55.47 ++ 55 so2018-02-15 14:27:51 222.740 LTC-USDT +0.83% 1579 55.47 ++ 55 so2018-02-15 14:27:51 222.740 LTC-USDT +0.83% 1579 55.47 ++ 55 so2018-02-15 14:27:51 222.740 LTC-USDT +0.83% 1579 55.47 ++ 55 so2018-02-15 14:27:51 222.740 LTC-USDT +0.83% 1579 55.47 ++ 55 sold 0.51980400 LTC 52.60730490 USDT +20.49% -15.45% manual limit BUY command executed 2018-02-15 14:28:00 222.500 LTC-USDT +0.72% 1586 54.52 + 54 sold 0.51980400 LTC 52.60730490 USDT +20.40% -15.42% 2018-02-15 14:28:45 223.300 LTC-USDT +0.35% 452 57.74 ++ 57 -0.92018-02-15 14:28:45 223.300 LTC-USDT +0.35% 452 57.74 ++ 57 -0.92018-02-15 14:28:45 223.300 LTC-USDT +0.35% 452 57.74 ++ 57 -0.92018-02-15 14:28:45 223.300 LTC-USDT +0.35% 452 57.74 ++ 57 -0.92018-02-15 14:28:45 223.300 LTC-USDT +0.35% 452 57.74 ++ 57 -0.92018-02-15 14:29:36 222.840 LTC-USDT +0.15% 856 55.95 ++ 55 -0.72018-02-15 14:29:36 222.840 LTC-USDT +0.15% 856 55.95 ++ 55 -0.72018-02-15 14:29:36 222.840 LTC-USDT +0.15% 856 55.95 ++ 55 -0.72018-02-15 14:29:36 222.840 LTC-USDT +0.15% 856 55.95 ++ 55 -0.72018-02-15 14:29:36 222.840 LTC-USDT +0.15% 856 55.95 ++ 55 -0.73% 0.51980400 LTC 52.60730490 USDT +20.53% -15.46% manual market BUY command executed 2018-02-15 14:30:00 222.650 LTC-USDT +0.06% 1020 55.16 ++ 55 -0.65% 0.51980400 LTC 52.60730490 USDT +20.46% -15.44% 2018-02-15 14:30:26 222.810 LTC-USDT +0.07% 58 55.88 ++ 55 -0.72018-02-15 14:30:26 222.810 LTC-USDT +0.07% 58 55.88 ++ 55 -0.72018-02-15 14:30:26 222.810 LTC-USDT +0.07% 58 55.88 ++ 55 -0.72018-02-15 14:30:26 222.810 LTC-USDT +0.07% 58 55.88 ++ 55 -0.72018-02-15 14:30:26 222.810 LTC-USDT +0.07% 58 55.88 ++ 55 -0.72% 0.51980400 LTC 52.60730490 USDT +20.52% -15.46% manual market BUY command executed 2018-02-15 14:31:13 222.760 LTC-USDT +0.04% 280 55.66 ++ 55 -0.72018-02-15 14:31:13 222.760 LTC-USDT +0.04% 280 55.66 ++ 55 -0.72018-02-15 14:31:13 222.760 LTC-USDT +0.04% 280 55.66 ++ 55 -0.72018-02-15 14:31:13 222.760 LTC-USDT +0.04% 280 55.66 ++ 55 -0.72018-02-15 14:31:13 222.760 LTC-USDT +0.04% 280 55.66 ++ 55 -0.70% 0.51980400 LTC 52.60730490 USDT +20.50% -15.45% manual limit SELL command executed

sell order completed at 2018-02-15 14:31:55:

0.15594120 LTC at 223.560 USDT total 34.8622 USDT 0.0000% slippage (orig. price 223.560 USDT) execution: a few seconds

2018-02-15 14:32:00 223.490 LTC-USDT +0.37% 478 58.68 ++ 58 sold 0.36386400 LTC 87.46925130 USDT +20.78% -15.53% 2018-02-15 14:32:05 223.550 LTC-USDT +0.02% 5 58.92 ++ 58 +0.02018-02-15 14:32:05 223.550 LTC-USDT +0.02% 5 58.92 ++ 58 +0.02018-02-15 14:32:05 223.550 LTC-USDT +0.02% 5 58.92 ++ 58 +0.02018-02-15 14:32:05 223.550 LTC-USDT +0.02% 5 58.92 ++ 58 +0.02018-02-15 14:32:05 223.550 LTC-USDT +0.02% 5 58.92 ++ 58 +0.00% 0.36386400 LTC 87.46925130 USDT +20.79% -15.55% juosma@juosma-HP-EliteBook-2570p:~/git/gdax$

---------------------------------------- STARTING LIVE TRADING ---------------------------------------- Press l to list available commands. Web GUI running on http://0.0.0.0:20082/ 2018-02-15 14:35:04 223.720 LTC-USDT +0.12% 806 58.79 ++ 58 2018-02-15 14:35:04 223.720 LTC-USDT +0.12% 806 58.79 ++ 58 2018-02-15 14:35:04 223.720 LTC-USDT +0.12% 806 58.79 ++ 58 2018-02-15 14:35:04 223.720 LTC-USDT +0.12% 806 58.79 ++ 58 2018-02-15 14:35:04 223.720 LTC-USDT +0.12% 806 58.79 ++ 58 0.36386400 LTC 87.46925130 USDT +20.84% -15.58% manual market BUY command executed 2018-02-15 14:35:51 223.310 LTC-USDT -0.06% 904 56.73 ++ 56 2018-02-15 14:35:51 223.310 LTC-USDT -0.06% 904 56.73 ++ 56 2018-02-15 14:35:51 223.310 LTC-USDT -0.06% 904 56.73 ++ 56 2018-02-15 14:35:51 223.310 LTC-USDT -0.06% 904 56.73 ++ 56 2018-02-15 14:35:51 223.310 LTC-USDT -0.06% 904 56.73 ++ 56 2018-02-15 14:36:00 223.310 LTC-USDT -0.06% 906 56.73 ++ 56 0.36386400 LTC 87.46925130 USDT +20.73% -15.50% 2018-02-15 14:36:44 223.360 LTC-USDT +0.02% 73 56.98 ++ 56 2018-02-15 14:36:44 223.360 LTC-USDT +0.02% 73 56.98 ++ 56 2018-02-15 14:36:44 223.360 LTC-USDT +0.02% 73 56.98 ++ 56 2018-02-15 14:36:44 223.360 LTC-USDT +0.02% 73 56.98 ++ 56 2018-02-15 14:36:44 223.360 LTC-USDT +0.02% 73 56.98 ++ 56 2018-02-15 14:37:34 223.700 LTC-USDT +0.17% 249 58.60 ++ 58 2018-02-15 14:37:34 223.700 LTC-USDT +0.17% 249 58.60 ++ 58 2018-02-15 14:37:34 223.700 LTC-USDT +0.17% 249 58.60 ++ 58 2018-02-15 14:37:34 223.700 LTC-USDT +0.17% 249 58.60 ++ 58 2018-02-15 14:37:34 223.700 LTC-USDT +0.17% 249 58.60 ++ 58 0.36386400 LTC 87.46925130 USDT +20.83% -15.57% manual market SELL command executed

2018-02-15 14:37:57 - placing sell order...

2018-02-15 14:37:58 - sell order placed at 223.470 USDT

2018-02-15 14:38:04 - order status: done

sell order completed at 2018-02-15 14:38:04:

0.10915920 LTC at 223.470 USDT total 24.3938 USDT 0.0000% slippage (orig. price 223.470 USDT) execution: a few seconds

2018-02-15 14:38:00 223.350 LTC-USDT +0.01% 398 56.93 ++ 56 sold 0.25471400 LTC 111.84790380 USDT +20.74% -15.51% 2018-02-15 14:38:23 223.350 LTC-USDT +0.00% 69 56.93 ++ 56 +0.02018-02-15 14:38:23 223.350 LTC-USDT +0.00% 69 56.93 ++ 56 +0.02018-02-15 14:38:23 223.350 LTC-USDT +0.00% 69 56.93 ++ 56 +0.02018-02-15 14:38:23 223.350 LTC-USDT +0.00% 69 56.93 ++ 56 +0.02018-02-15 14:38:23 223.350 LTC-USDT +0.00% 69 56.93 ++ 56 +0.05% 0.25471400 LTC 111.84790380 USDT +20.74% -15.51% manual limit BUY command executed 2018-02-15 14:39:15 224.450 LTC-USDT +0.49% 598 62.11 ++ 62 -0.42018-02-15 14:39:15 224.450 LTC-USDT +0.49% 598 62.11 ++ 62 -0.42018-02-15 14:39:15 224.450 LTC-USDT +0.49% 598 62.11 ++ 62 -0.42018-02-15 14:39:15 224.450 LTC-USDT +0.49% 598 62.11 ++ 62 -0.42018-02-15 14:39:15 224.450 LTC-USDT +0.49% 598 62.11 ++ 62 -0.44% 0.25471400 LTC 111.84790380 USDT +20.94% -15.78% manual limit BUY command executed 2018-02-15 14:40:00 225.130 LTC-USDT +0.79% 1295 64.73 ++ 64 -0.75% 0.25471400 LTC 111.84790380 USDT +21.07% -15.95% 2018-02-15 14:40:04 225.000 LTC-USDT -0.06% 140 63.82 ++ 63 -0.62018-02-15 14:40:04 225.000 LTC-USDT -0.06% 140 63.82 ++ 63 -0.62018-02-15 14:40:04 225.000 LTC-USDT -0.06% 140 63.82 ++ 63 -0.62018-02-15 14:40:04 225.000 LTC-USDT -0.06% 140 63.82 ++ 63 -0.62018-02-15 14:40:04 225.000 LTC-USDT -0.06% 140 63.82 ++ 63 -0.69% 0.25471400 LTC 111.84790380 USDT +21.04% -15.92%

juosma avatar Feb 16 '18 14:02 juosma

Dear issue reporter,

We have slightly changed our github issue policy and would now kindly request folks that have questions that they ask them in our zenbot subreddit.

You can find it here: https://reddit.com/r/zenbot

This issue will be closed, but if you disagree with your ticket being marked as a question feel free to leave a comment defending your case.

Thanks for contributing time and effort!

Greetings, 🤖

DeviaVir avatar Feb 28 '18 12:02 DeviaVir