DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.23k stars 2.04k forks source link

Connection timed out errors buys and sells #362

Closed ghost closed 7 years ago

ghost commented 7 years ago

order status: open, bid: 0.12603081, 0.00000000 below best bid, 0.0% filled
order status: open, bid: 0.12603081, 0.00000000 below best bid, 0.0% filled
order status: open, bid: 0.12603081, 0.00000000 below best bid, 0.0% filled
order status: open, bid: 0.12603081, 0.00000000 below best bid, 0.0% filled
order status: open, bid: 0.12603081, 0.00000000 below best bid, 0.0% filled

returnOpenOrders odd result:
{ error: 'Connection timed out. Please try again.' }

buy order completed at 2017-07-07 00:25:11:

0.00404190 GNO at 0.12603081 BTC
total 0.00050940 BTC
0.0000% slippage (orig. price 0.12603081 BTC)
execution: 2 minutes

Order was not completed.....

DeviaVir commented 7 years ago

@TheRoboKitten what settings are you running the bot with?

ghost commented 7 years ago

./zenbot.sh sell --order_type=taker --order_adjust_time=1000 poloniex.LTC-BTC ./zenbot.sh buy --order_type=taker --order_adjust_time=1000 poloniex.LTC-BTC

I read in discord that the timeout was removed maybe? If not it's cool. Poloniex is very slow.

It happened again on another buy order, so I manually moved the coin.

Besides this, I was wondering if there is any way to speed up the buy/sell process to that of the speed of almost instant like hitting the buy/sell buttons on poloniex. I tried to do this using --markup_pct=-1 to increase the buy speed but any real number gets order status: rejected.

ghost commented 7 years ago

It will also for some odd reason, just ignore the order in the system as well with no error even though it has not been bought/sold.

(u'GNO-BTC', 0.0010507999999999906)
warning: mongodb not accessible. some features (such as backfilling/simulation) may be disabled.
buy order completed at 2017-07-07 04:10:06:
0.00435613 GNO at 0.12705082 BTC
total 0.00055345 BTC
0.0000% slippage (orig. price 0.12705082 BTC)
execution: a few seconds

order status: done, bid: 0.12705082, 0.00000000 below best bid, 0.0% filled
File Removed!
XVC-BTC
ghost commented 7 years ago

also:

.00091651
(u'REP-BTC', 4.998999999999976e-05)
warning: mongodb not accessible. some features (such as backfilling/simulation) may be disabled.
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
placing order...
ghost commented 7 years ago

On the newest pull:

returnOpenOrders odd result:
{ error: 'Connection timed out. Please try again.' }

buy order completed at 2017-07-07 14:03:14:

0.00446343 GNO at 0.12231396 BTC
total 0.00054594 BTC
0.0000% slippage (orig. price 0.12231395 BTC)
execution: a minute

File Removed!
XVC-BTC

Still erroring and not completing the buy/sell

nedievas commented 7 years ago

It's the same with bitfinex. I can not log 'opts' in sell or buy. It's like it never reaches...

ghost commented 7 years ago

This was due to the poloniex taker mode not supported. https://github.com/carlos8f/zenbot/commit/e7b570381e8682ee283ffe191745eb13b4496f28