Trying out PINGPONG for the first time. Getting the error below. Additionally, there needs to be a bit more logic here too cause I had a SELL order and then immediately had a BUY order. Seems the bot did not wait for that sell order to fulfill before starting the next cycle.
###[ --2017/08/09 14:49:14--poloniex--BTC_BCN -- Gunbot v3.3 cycle #16196 --------------- ]
::::: collecting market data...
***************************************************
EMA1:0.00000041 - EMA2:0.00000042
***************************************************
++++
LP 4.3e-7 Bal.BTC 0.20202401 Bal.BCN 0(23197.67491735)
We have open orders
boughtPrice 0.00000043
price steady (0)
PriceToBuy 0.0042 priceToSell 0.0043
LP 0.0043000 > prBuy 0.0042000 secMargin 1.6844000000000007e-7 grows no
no altcoins: 0
price to buy: 4.2e-7
last price is too high
Gunbot callback at 2017/08/09 14:49:15 cycle # 16196
Callback:
---------
price too high
need faster: no
need slower: no
next delay will be 16.75511924853329s
We didnt buy yet [ { orderNumber: '4556533912',
type: 'sell',
rate: '0.00000043',
startingAmount: '23197.67491735',
amount: '23197.67491735',
total: '0.00997500',
date: '2017-08-09 14:48:57',
margin: 0 } ]
Unhandled rejection Error: We sent BUY order but the exchange didnt receive it.
at Object.console./snapshot/Users/Enrico/Desktop/xBot_v2.9.3/poloniex.js.module.exports.Market.checkifwesold.poloniex.returnOpenOrders [as callback] (evalmachine.<anonymous>:0:0)
at /snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/async/dist/async.js:2243:31
at /snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/async/dist/async.js:906:16
at Request._callback (/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/plnx/lib/index.js:138:7)
at Request.self.callback (/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:192:7)
at Request.<anonymous> (/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:189:7)
at IncomingMessage.<anonymous> (/snapshot/Users/Enrico/Desktop/xBot_v2.9.3/node_modules/request/request.js:1091:12)
at Object.onceWrapper (events.js:291:19)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:186:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)