Username: Password:

Author Topic: Handle bots stuck in "Waiting for orders"  (Read 10447 times)

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Handle bots stuck in "Waiting for orders"
« on: May 19, 2017, 09:58:30 AM »
What is the preferred way to handle bots stuck in waiting orders?
GUNBOT v3.2 Patch 2022

My STRAT bot has placed a buy order in the moment the price went up again. The buy order is still in Poloniex and the bot is waiting.

Log of buying event:

Code: [Select]
2017/05/19 00:59:18 [ --2017/05/19 00:59:18--poloniex--BTC_STRAT  --  Gunbot v3.2 cycle #43 --------------- ]
2017/05/19 00:59:18 ::::: collecting market data...
2017/05/19 00:59:18 ***************************************************
2017/05/19 00:59:18 Low BB:0.00073482 - High BB:0.00076516
2017/05/19 00:59:18 ***************************************************
2017/05/19 00:59:19 LP 0.00072208  Bal.BTC 0.13207573  Bal.STRAT 0(0)
2017/05/19 00:59:19 No open orders
2017/05/19 00:59:19 boughtPrice 0.00070175
2017/05/19 00:59:19 price  falls (-1)
2017/05/19 00:59:19 PriceToBuy,7.2749,priceToSell,7.3684
2017/05/19 00:59:19 LP 7.2208000,<=,prBuy 7.2748799  secMargin 0.0002909951961904762  grows yes
2017/05/19 00:59:19 no altcoins: 0
2017/05/19 00:59:19 price to buy: 0.0007274879904761904
2017/05/19 00:59:19 price is sweet to buy
2017/05/19 00:59:19 price is growing
2017/05/19 00:59:19 Buying on poloniex 55.396024041657434 of STRAT for 0.00072208
2017/05/19 00:59:21
2017/05/19 00:59:21 *** MARKET CALLBACK | buy 55.396024041657434 STRAT for 0.00072208 BTC
2017/05/19 00:59:21 Gunbot callback at 2017/05/19 00:59:21 cycle # 43
2017/05/19 00:59:21 Callback:
2017/05/19 00:59:21 ---------
2017/05/19 00:59:21 buy 55.396024041657434 STRAT for 0.00072208 BTC
2017/05/19 00:59:21 next delay will be 111s


The output for the next hours is "Waiting for orders: 0 STRAT":

Code: [Select]
2017/05/19 01:01:12 [ --2017/05/19 01:01:12--poloniex--BTC_STRAT  --  Gunbot v3.2 cycle #44 --------------- ]
2017/05/19 01:01:12 ::::: collecting market data...
2017/05/19 01:01:12 ***************************************************
2017/05/19 01:01:12 Low BB:0.00073210 - High BB:0.00076657
2017/05/19 01:01:12 ***************************************************
2017/05/19 01:01:16 LP 0.00072772  Bal.BTC 0.09207537  Bal.STRAT 0(0)
2017/05/19 01:01:16 Open orders
2017/05/19 01:01:16 boughtPrice 0.00072208
2017/05/19 01:01:16 price  steady (0)
2017/05/19 01:01:16 PriceToBuy,7.2686,priceToSell,7.5818
2017/05/19 01:01:16 Gunbot callback at 2017/05/19 01:01:16 cycle # 44
2017/05/19 01:01:16 Callback:
2017/05/19 01:01:16 ---------
2017/05/19 01:01:16 Waiting for orders: 0 STRAT
2017/05/19 01:01:16 next delay will be 111s


6 hours later it looks like the bot want's to cancel the buy order "--canceling buy orders". But it did not work, the order is still in Poloniex:

Code: [Select]
2017/05/19 07:11:43 [ --2017/05/19 07:11:43--poloniex--BTC_STRAT  --  Gunbot v3.2 cycle #241 --------------- ]
2017/05/19 07:11:43 ::::: collecting market data...
2017/05/19 07:11:43 ***************************************************
2017/05/19 07:11:43 Low BB:0.00072023 - High BB:0.00080285
2017/05/19 07:11:43 ***************************************************
2017/05/19 07:11:45 --canceling buy orders
2017/05/19 07:11:45 LP 0.000795  Bal.BTC 0.13971585  Bal.STRAT 0(0)
2017/05/19 07:11:45 Open orders
2017/05/19 07:11:45 boughtPrice 0.00072208
2017/05/19 07:11:45 price  grows (4)
2017/05/19 07:11:45 PriceToBuy,7.3869,priceToSell,7.5818
2017/05/19 07:11:45 Gunbot callback at 2017/05/19 07:11:45 cycle # 241
2017/05/19 07:11:45 Callback:
2017/05/19 07:11:45 ---------
2017/05/19 07:11:45 Waiting for orders: 0 STRAT
2017/05/19 07:11:45 next delay will be 111s
2017/05/19 07:11:45 Open buy orders: ,0
2017/05/19 07:11:45


So till now the bot is waiting.



What is the recommended way to handle this? :)

1) Restart the bot and have CANCEL_BUY_ORDERS_ON_START: false
2) Restart the bot and have CANCEL_BUY_ORDERS_ON_START: true
3) Let the bot run and cancel the order manually at Poloniex
4) Stop the bot, cancel the order manually, start the bot
5) Something completely different  :D









Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline heromrk18

  • Rookie
  • *
  • Posts: 7
    • View Profile
Re: Handle bots stuck in "Waiting for orders"
« Reply #1 on: January 04, 2018, 01:00:20 AM »
of course there was no answer...