Username: Password:

Author Topic: Buy then sell then buy at same price within only a few minutes  (Read 18432 times)

Offline ajg

  • Rookie
  • *
  • Posts: 12
    • View Profile
Hi,  I noticed a weird thing GunBot did today.

It bought at a price, then a minute later sold at the same price, then a minute later bought at the same price again.  A loss in fees.  Why would GB do this?  Is it a bug?

For info, I'm using stepgain buy/sell strategy with lvl1 buy at 4 and lvl1 sell at 2, 20 second delay and using community proxy 0.9.8.

I did notice a weird error which may have been involved in this strange behaviour, but I'm not a GunBot expert so can someone please help me here?

Below is the logs and attached is the buy history from Poloniex:



2017/07/23 07:37:24     ###[ --2017/07/23 07:37:24--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4631 --------------- ]
2017/07/23 07:37:24     ::::: collecting market data...
2017/07/23 07:37:24     ***************************************************
2017/07/23 07:37:24     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:37:24     ***************************************************
2017/07/23 07:37:25     LP 0.0009644  Bal.BTC 0.14663846  Bal.GAME 0(0)
2017/07/23 07:37:25     No open orders
2017/07/23 07:37:25     boughtPrice 0.00076763
2017/07/23 07:37:25     price  falls (-36)
2017/07/23 07:37:25     PriceToBuy,9.6548,priceToSell,9.6684
2017/07/23 07:37:25     LP 9.6440000,<=,prBuy 9.6548401  secMargin 0.00030705200000000004  grows no
2017/07/23 07:37:25     no altcoins: 0
2017/07/23 07:37:25     price to buy: 0.0009654840097999997
2017/07/23 07:37:25     price is sweet to buy
2017/07/23 07:37:25     price is not growing
2017/07/23 07:37:25     Gunbot callback at 2017/07/23 07:37:25 cycle # 4631
2017/07/23 07:37:25     Callback:
2017/07/23 07:37:25     ---------
2017/07/23 07:37:25     price is not growing
need faster: yes
need slower: no

2017/07/23 07:37:25     next delay will be 10s


2017/07/23 07:37:35     ###[ --2017/07/23 07:37:35--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4632 --------------- ]
2017/07/23 07:37:35     ::::: collecting market data...
2017/07/23 07:37:35     ***************************************************
2017/07/23 07:37:35     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:37:35     ***************************************************
2017/07/23 07:37:36     LP 0.0009644  Bal.BTC 0.14663846  Bal.GAME 0(0)
2017/07/23 07:37:36     No open orders
2017/07/23 07:37:36     boughtPrice 0.00076763
2017/07/23 07:37:36     price  falls (-35)
2017/07/23 07:37:36     PriceToBuy,9.6542,priceToSell,9.6440
2017/07/23 07:37:36     LP 9.6440000,<=,prBuy 9.6542465  secMargin 0.00030705200000000004  grows yes
2017/07/23 07:37:36     no altcoins: 0
2017/07/23 07:37:36     price to buy: 0.0009654246457999998
2017/07/23 07:37:36     price is sweet to buy
2017/07/23 07:37:36     price is growing
2017/07/23 07:37:36     Buying on poloniex 5.185070717544587 of GAME for 0.0009644
2017/07/23 07:37:38
2017/07/23 07:37:38 *** MARKET CALLBACK | buy 5.185070717544587 GAME for 0.0009644 BTC
2017/07/23 07:37:38     Gunbot callback at 2017/07/23 07:37:38 cycle # 4632
2017/07/23 07:37:38     Callback:
2017/07/23 07:37:38     ---------
2017/07/23 07:37:38     buy 5.185070717544587 GAME for 0.0009644 BTC
need faster: no
need slower: no

2017/07/23 07:37:38     next delay will be 20s


2017/07/23 07:37:58     ###[ --2017/07/23 07:37:58--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4633 --------------- ]
2017/07/23 07:37:58     ::::: collecting market data...
2017/07/23 07:37:59     ***************************************************
2017/07/23 07:37:59     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:37:59     ***************************************************
2017/07/23 07:38:00     LP 0.0009669  Bal.BTC 0.14163798  Bal.GAME 0(0)
2017/07/23 07:38:00     We have open orders
2017/07/23 07:38:00     boughtPrice 0.00076763
2017/07/23 07:38:00     price  falls (-35)
2017/07/23 07:38:00     PriceToBuy,9.6537,priceToSell,9.6440
2017/07/23 07:38:00     LP 9.6690000,>,prBuy 9.6536528  secMargin 0.00030705200000000004  grows no
2017/07/23 07:38:00     no altcoins: 0
2017/07/23 07:38:00     price to buy: 0.0009653652817999998
2017/07/23 07:38:00     last price is too high
2017/07/23 07:38:00     Gunbot callback at 2017/07/23 07:38:00 cycle # 4633
2017/07/23 07:38:00     Callback:
2017/07/23 07:38:00     ---------
2017/07/23 07:38:00     price too high
need faster: no
need slower: no

2017/07/23 07:38:00     next delay will be 20s


2017/07/23 07:38:00     WARNING: we already bought!!! Switching to sell mode...
2017/07/23 07:38:01     WARNING: we bought!!!!
2017/07/23 07:38:20     ###[ --2017/07/23 07:38:20--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4634 --------------- ]
2017/07/23 07:38:20     ::::: collecting market data...
2017/07/23 07:38:20     ***************************************************
2017/07/23 07:38:20     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:38:20     ***************************************************
2017/07/23 07:38:21     LP 0.0009669  Bal.BTC 0.14163798  Bal.GAME 0(0)
2017/07/23 07:38:21     We have open orders
2017/07/23 07:38:21     boughtPrice 0.00076763
2017/07/23 07:38:21     price  falls (-35)
2017/07/23 07:38:21     PriceToBuy,9.6532,priceToSell,9.6690
2017/07/23 07:38:21     we have altcoins: 0
2017/07/23 07:38:21     LP 9.669,>=,prSell 9.669  secMargin 0.00030705200000000004  falls yes
2017/07/23 07:38:21     price to sell: ,0.0009669
2017/07/23 07:38:21     price is sweet
2017/07/23 07:38:21     price fall -> sell
2017/07/23 07:38:21     WARNING: we already bought!!! Switching to sell mode...
2017/07/23 07:38:21     2017/07/23 07:38:21 Error: Total must be at least 0.0001.
2017/07/23 07:38:21     !!! Cycle 4635 failed. Will repeat in 60s
2017/07/23 07:38:22     WARNING: we bought!!!!
2017/07/23 07:39:21     ###[ --2017/07/23 07:39:21--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4635 --------------- ]
2017/07/23 07:39:21     ::::: collecting market data...
2017/07/23 07:39:22     ***************************************************
2017/07/23 07:39:22     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:39:22     ***************************************************
2017/07/23 07:39:23     LP 0.0009644  Bal.BTC 0.14163798  Bal.GAME 5.17729311(0)
2017/07/23 07:39:23     No open orders
2017/07/23 07:39:23     boughtPrice 0.00076763
2017/07/23 07:39:23     price  falls (-36)
2017/07/23 07:39:23     PriceToBuy,9.6526,priceToSell,9.6690
2017/07/23 07:39:23     we have altcoins: 5.17729311
2017/07/23 07:39:23     LP 9.644,<,prSell 9.669  secMargin 0.00030705200000000004  falls yes
2017/07/23 07:39:23     price is too low to sell
2017/07/23 07:39:23     Gunbot callback at 2017/07/23 07:39:23 cycle # 4635
2017/07/23 07:39:23     Callback:
2017/07/23 07:39:23     ---------
2017/07/23 07:39:23     waiting to sell
need faster: no
need slower: no

2017/07/23 07:39:23     next delay will be 20s
2017/07/23 07:39:43     ###[ --2017/07/23 07:39:43--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4636 --------------- ]
2017/07/23 07:39:43     ::::: collecting market data...
2017/07/23 07:39:43     ***************************************************
2017/07/23 07:39:43     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:39:43     ***************************************************
2017/07/23 07:39:44     LP 0.0009644  Bal.BTC 0.14163798  Bal.GAME 5.17729311(0)
2017/07/23 07:39:44     No open orders
2017/07/23 07:39:44     boughtPrice 0.00076763
2017/07/23 07:39:44     price  falls (-36)
2017/07/23 07:39:44     PriceToBuy,9.6521,priceToSell,9.6440
2017/07/23 07:39:44     we have altcoins: 5.17729311
2017/07/23 07:39:44     LP 9.644,>=,prSell 9.644  secMargin 0.0003980229279999999  falls yes
2017/07/23 07:39:44     price to sell: ,0.0009644
2017/07/23 07:39:44     price is sweet
2017/07/23 07:39:44     price fall -> sell
2017/07/23 07:39:45     [object Object]
2017/07/23 07:39:45     [object Object]
2017/07/23 07:39:45
2017/07/23 07:39:45 *** MARKET CALLBACK | sell 5.17729311 GAME for 0.0009644 BTC
2017/07/23 07:39:45     Profit 0.0010187359652547
2017/07/23 07:39:45     Gunbot callback at 2017/07/23 07:39:45 cycle # 4636
2017/07/23 07:39:45     Callback:
2017/07/23 07:39:45     ---------
2017/07/23 07:39:45     sell 5.17729311 GAME for 0.0009644 BTC
need faster: no
need slower: no

2017/07/23 07:39:45     next delay will be 20s


2017/07/23 07:40:05     ###[ --2017/07/23 07:40:05--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4637 --------------- ]
2017/07/23 07:40:05     ::::: collecting market data...
2017/07/23 07:40:06     ***************************************************
2017/07/23 07:40:06     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:40:06     ***************************************************
2017/07/23 07:40:07     LP 0.0009644  Bal.BTC 0.14661848  Bal.GAME 0(0)
2017/07/23 07:40:07     No open orders
2017/07/23 07:40:07     boughtPrice 0.00096440
2017/07/23 07:40:07     price  falls (-35)
2017/07/23 07:40:07     PriceToBuy,9.6515,priceToSell,10.1262
2017/07/23 07:40:07     LP 9.6440000,<=,prBuy 9.6514626  secMargin 0.00039799845599999996  grows yes
2017/07/23 07:40:07     no altcoins: 0
2017/07/23 07:40:07     price to buy: 0.0009651462557999998
2017/07/23 07:40:07     price is sweet to buy
2017/07/23 07:40:07     price is growing
2017/07/23 07:40:07     Buying on poloniex 5.185070717544587 of GAME for 0.0009644
2017/07/23 07:40:07
2017/07/23 07:40:07 *** MARKET CALLBACK | buy 5.185070717544587 GAME for 0.0009644 BTC
2017/07/23 07:40:07     Gunbot callback at 2017/07/23 07:40:07 cycle # 4637
2017/07/23 07:40:07     Callback:
2017/07/23 07:40:07     ---------
2017/07/23 07:40:07     buy 5.185070717544587 GAME for 0.0009644 BTC
need faster: no
need slower: no

2017/07/23 07:40:07     next delay will be 20s


2017/07/23 07:40:27     ###[ --2017/07/23 07:40:27--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4638 --------------- ]
2017/07/23 07:40:27     ::::: collecting market data...
2017/07/23 07:40:27     ***************************************************
2017/07/23 07:40:27     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:40:27     ***************************************************
2017/07/23 07:40:28     LP 0.00096455  Bal.BTC 0.141618  Bal.GAME 0(0)
2017/07/23 07:40:28     We have open orders
2017/07/23 07:40:28     boughtPrice 0.0009644
2017/07/23 07:40:28     price  falls (-34)
2017/07/23 07:40:28     PriceToBuy,9.6509,priceToSell,10.1262
2017/07/23 07:40:28     LP 9.6455000,<=,prBuy 9.6508691  secMargin 0.00038576  grows yes
2017/07/23 07:40:28     no altcoins: 0
2017/07/23 07:40:28     price to buy: 0.0009650869112000001
2017/07/23 07:40:28     price is sweet to buy
2017/07/23 07:40:28     price is growing
2017/07/23 07:40:28     Buying on poloniex 5.184264449743403 of GAME for 0.00096455
2017/07/23 07:40:28     WARNING: we already bought!!! Switching to sell mode...
2017/07/23 07:40:28
2017/07/23 07:40:28 *** MARKET CALLBACK | buy 5.184264449743403 GAME for 0.00096455 BTC
2017/07/23 07:40:28     Gunbot callback at 2017/07/23 07:40:28 cycle # 4638
2017/07/23 07:40:28     Callback:
2017/07/23 07:40:28     ---------
2017/07/23 07:40:28     buy 5.184264449743403 GAME for 0.00096455 BTC
need faster: no
need slower: no

2017/07/23 07:40:28     next delay will be 20s


2017/07/23 07:40:29     WARNING: we bought!!!!
2017/07/23 07:40:48     ###[ --2017/07/23 07:40:48--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4639 --------------- ]
2017/07/23 07:40:48     ::::: collecting market data...
2017/07/23 07:40:49     ***************************************************
2017/07/23 07:40:49     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:40:49     ***************************************************
2017/07/23 07:40:50     LP 0.0009644  Bal.BTC 0.1422165  Bal.GAME 5.17729311(0)
2017/07/23 07:40:50     No open orders
2017/07/23 07:40:50     boughtPrice 0.00096455
2017/07/23 07:40:50     price  falls (-36)
2017/07/23 07:40:50     PriceToBuy,9.6503,priceToSell,10.1278
2017/07/23 07:40:50     we have altcoins: 5.17729311
2017/07/23 07:40:50     LP 9.644,<,prSell 10.127775  secMargin 0.00038582000000000004  falls yes
2017/07/23 07:40:50     price is too low to sell
2017/07/23 07:40:50     Gunbot callback at 2017/07/23 07:40:50 cycle # 4639
2017/07/23 07:40:50     Callback:
2017/07/23 07:40:50     ---------
2017/07/23 07:40:50     waiting to sell
need faster: no
need slower: no
2017/07/23 07:40:50     next delay will be 20s


2017/07/23 07:41:10     ###[ --2017/07/23 07:41:10--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4640 --------------- ]
2017/07/23 07:41:10     ::::: collecting market data...
2017/07/23 07:41:10     ***************************************************
2017/07/23 07:41:10     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:41:10     ***************************************************
2017/07/23 07:41:12     LP 0.0009644  Bal.BTC 0.1422165  Bal.GAME 5.17729311(0)
2017/07/23 07:41:12     No open orders
2017/07/23 07:41:12     boughtPrice 0.00096455
2017/07/23 07:41:12     price  falls (-35)
2017/07/23 07:41:12     PriceToBuy,9.6497,priceToSell,10.1278
2017/07/23 07:41:12     we have altcoins: 5.17729311
2017/07/23 07:41:12     LP 9.644,<,prSell 10.127775  secMargin 0.0003979267440000001  falls yes
2017/07/23 07:41:12     price is too low to sell
2017/07/23 07:41:12     Gunbot callback at 2017/07/23 07:41:12 cycle # 4640
2017/07/23 07:41:12     Callback:
2017/07/23 07:41:12     ---------
2017/07/23 07:41:12     waiting to sell
need faster: no
need slower: no

2017/07/23 07:41:12     next delay will be 20s


2017/07/23 07:41:33     ###[ --2017/07/23 07:41:33--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4641 --------------- ]
2017/07/23 07:41:33     ::::: collecting market data...
2017/07/23 07:41:33     ***************************************************
2017/07/23 07:41:33     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:41:33     ***************************************************
2017/07/23 07:41:34     LP 0.0009644  Bal.BTC 0.13721648  Bal.GAME 5.17729311(0)
2017/07/23 07:41:34     No open orders
2017/07/23 07:41:34     boughtPrice 0.00096455
2017/07/23 07:41:34     price  falls (-34)
2017/07/23 07:41:34     PriceToBuy,9.6491,priceToSell,10.1278
2017/07/23 07:41:34     we have altcoins: 5.17729311
2017/07/23 07:41:34     LP 9.644,<,prSell 10.127775  secMargin 0.00039790227200000005  falls no
2017/07/23 07:41:34     price is too low to sell
2017/07/23 07:41:34     Gunbot callback at 2017/07/23 07:41:34 cycle # 4641
2017/07/23 07:41:34     Callback:
2017/07/23 07:41:34     ---------
2017/07/23 07:41:34     waiting to sell
need faster: no
need slower: no

2017/07/23 07:41:34     next delay will be 20s

2017/07/23 07:41:54     ###[ --2017/07/23 07:41:54--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4642 --------------- ]
2017/07/23 07:41:54     ::::: collecting market data...
2017/07/23 07:41:54     ***************************************************
2017/07/23 07:41:54     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:41:54     ***************************************************
2017/07/23 07:41:55     LP 0.0009644  Bal.BTC 0.13721648  Bal.GAME 5.17729311(0)
2017/07/23 07:41:55     No open orders
2017/07/23 07:41:55     boughtPrice 0.00096455
2017/07/23 07:41:55     price  falls (-35)
2017/07/23 07:41:55     PriceToBuy,9.6486,priceToSell,10.1278
2017/07/23 07:41:55     we have altcoins: 5.17729311
2017/07/23 07:41:55     LP 9.644,<,prSell 10.127775  secMargin 0.00039787858400000016  falls yes
2017/07/23 07:41:55     price is too low to sell
2017/07/23 07:41:55     Gunbot callback at 2017/07/23 07:41:55 cycle # 4642
2017/07/23 07:41:55     Callback:
2017/07/23 07:41:55     ---------
2017/07/23 07:41:55     waiting to sell
need faster: no
need slower: no

2017/07/23 07:41:55     next delay will be 20s


2017/07/23 07:42:15     ###[ --2017/07/23 07:42:15--poloniex--BTC_GAME  --  Gunbot v3.3 cycle #4643 --------------- ]
2017/07/23 07:42:15     ::::: collecting market data...
2017/07/23 07:42:15     ***************************************************
2017/07/23 07:42:15     EMA1:0.00096966 - EMA2:0.00091142
2017/07/23 07:42:15     ***************************************************
2017/07/23 07:42:16     LP 0.0009644  Bal.BTC 0.13721648  Bal.GAME 5.17729311(0)
2017/07/23 07:42:16     No open orders
2017/07/23 07:42:16     boughtPrice 0.00096455
2017/07/23 07:42:16     price  falls (-34)
2017/07/23 07:42:16     PriceToBuy,9.6480,priceToSell,10.1278
2017/07/23 07:42:16     we have altcoins: 5.17729311
2017/07/23 07:42:16     LP 9.644,<,prSell 10.127775  secMargin 0.00039785490400000013  falls no
2017/07/23 07:42:16     price is too low to sell
2017/07/23 07:42:16     Gunbot callback at 2017/07/23 07:42:16 cycle # 4643
2017/07/23 07:42:16     Callback:
2017/07/23 07:42:16     ---------
2017/07/23 07:42:16     waiting to sell
need faster: no
need slower: no

Offline opedroadami

  • Rookie
  • *
  • Posts: 39
    • View Profile
Re: Buy then sell then buy at same price within only a few minutes
« Reply #1 on: July 23, 2017, 08:35:31 PM »
I've been running GunBot since the beggining of May. This has also happened to me on a few occasions, unfortunately.

The new release should fix those issues, it has to do with 422 and a buy/sell callback that the bot didn't received, so it thinks it hasn't bought yet. I see you are using the proxy, so this is definately a bug and nothing to do with 422 problems.

Anyway, in 5000+ trades so far it has happened 10-15 times (a 99,75% sucess rate ain't bad, is it?)