Drakkar-Software / OctoBot

Open source crypto trading bot
https://www.octobot.cloud
GNU General Public License v3.0
3.09k stars 725 forks source link

Dont know if its a glitch with the coinbasepro api #1947

Open DrBlackross opened 2 years ago

DrBlackross commented 2 years ago

Step 1: Have you search for this issue before posting it? yes

If you have discovered a bug in the bot, please search our issue tracker. If it hasn't been reported, please create a new issue.

Step 2: Describe your environment

Step 3: Describe the problem:

Describe the bug Runs for a bit, but after while CoinbasePro error will pop up... BUT, i can use the Telegram interface to restart and it will resume. Error is.... 2022-04-23 15:28:42,671 WARNING WebSocketClient - coinbasepro COINBASE.ws.5: received no messages within timeout, restarting connection 2022-04-23 15:31:13,111 WARNING WebSocketClient - coinbasepro COINBASE.ws.5: received no messages within timeout, restarting connection 2022-04-23 15:33:43,562 WARNING WebSocketClient - coinbasepro COINBASE.ws.5: received no messages within timeout, restarting connection

Expected behavior No Errors?

Steps to reproduce:

  1. Running
  2. cd /home/drblackross/octobot-sideproject/ && ./OctoBot_linux_x64 Via /usr/bin/screen -dmS DayTrader-screen /home/drblackross/startup; screen -rd DayTrader-screen

Observed Results:

Relevant code exceptions or logs:

Sad thing it doesn't log this!?
DrBlackross commented 2 years ago

i can try pulling from GIT flatout and try again and see if i get the same error, instead of running the binary

Herklos commented 2 years ago

Hi @DrBlackross, OctoBot requires python3.8 not python 2.7 to run properly

DrBlackross commented 2 years ago

K, will update to 3.8 and try again

DrBlackross commented 2 years ago

ok, updated to python 3.8.10 (which was 3.6), but does octobot pull python3 or just python by default?

media-main:~$ python -V Python 2.7.18 media-main:~$ python3 -V Python 3.8.10 media-main:~$

(quick fix)

sudo update-alternatives --list python; sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1; sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2; sudo update-alternatives --config python

then just selected python 3

media-main:~$ sudo update-alternatives --config python There are 2 choices for the alternative python (providing /usr/bin/python).

Selection Path Priority Status

Press to keep the current choice[*], or type selection number: 2 media-main:~ python -V Python 3.8.10 media-main:~

DrBlackross commented 2 years ago

Ok still same error on python 3.8.10

2022-04-23 17:14:45,172 INFO SellLimitOrder | ffbb1885-2a24-4181-876d-5a471e36152d DOGE/USDT | SELL_LIMIT | Price : 0.1352 | Quantity : 4.1 | State : closed | id : ffbb1885-2a24-4181-876d-5a471e36152d closed on coinbasepro 2022-04-23 17:17:03,009 WARNING WebSocketClient - coinbasepro COINBASE.ws.5: received no messages within timeout, restarting connection 2022-04-23 17:19:33,454 WARNING WebSocketClient - coinbasepro COINBASE.ws.5: received no messages within timeout, restarting connection

Its just DOGE, ran with eth and btc for months before, maybe its just a 'temp' glitch? (i'll give it a few days and see if it pauses all trading)