Giter Site home page Giter Site logo

Connection reset by peer about pycryptobot HOT 7 CLOSED

whittlem avatar whittlem commented on July 17, 2024
Connection reset by peer

from pycryptobot.

Comments (7)

whittlem avatar whittlem commented on July 17, 2024 1

Thanks @letsautom8, that sounds like a good solution. @th0rnbr, can you try it and let us know if it resolves your issue?

@letsautom8, I see you are using "--selllowerpcnt". You may want to try "--trailingstoploss". I added it recently. Instead of having a fixed sell at -2% margin it would set the sell -2% under the current buy high. For example if you set "--trailingstoploss -2" if the margin goes up to 10% and then drops to 8% it will sell because the price dropped -2% from the high of the current buy.

from pycryptobot.

whittlem avatar whittlem commented on July 17, 2024

I'm not entirely sure what that could be.

  1. What are you running the bot(s) on?
  2. Which exchange are you using?
  3. Does it happen every time?
  4. How many bots are you running?

Can you make sure all your libraries are up to date?
"python3 -m pip install --upgrade pip"
"python3 -m pip list --outdated"

from pycryptobot.

th0rnbr avatar th0rnbr commented on July 17, 2024

Hi!
I'm running on a MacOS Catalina (10.15.7)[1], using binance [2], it happens every time (sometime between 10 - 30 minutes while running)[3]. I'm running just one bot right now[4].

There were 2 libraries outdated (idna and setuptools), so I update them. Although, even with the most recent libraries, it keeps giving connection errors.

from pycryptobot.

whittlem avatar whittlem commented on July 17, 2024

I have the same MacOS as you and mine works.

Maybe you have an SSL issue. What versions are you using?

% python -c "import ssl; print (ssl.OPENSSL_VERSION)"
OpenSSL 1.1.1k 25 Mar 2021

% python -c "from OpenSSL.SSL import SSLeay_version, SSLEAY_VERSION; print (SSLeay_version(SSLEAY_VERSION))"
b'OpenSSL 1.1.1j 16 Feb 2021'

from pycryptobot.

th0rnbr avatar th0rnbr commented on July 17, 2024

Hi. I think OpenSSL is already up to date:

% python -c "import ssl; print (ssl.OPENSSL_VERSION)"
OpenSSL 1.1.1k 25 Mar 2021

% python -c "from OpenSSL.SSL import SSLeay_version, SSLEAY_VERSION; print (SSLeay_version(SSLEAY_VERSION))"
b'OpenSSL 1.1.1k 25 Mar 2021'

from pycryptobot.

letsautom8 avatar letsautom8 commented on July 17, 2024

You could try installing a virtual environment to run your bot on - so no other libraries could mess with it.
Install virtual env

$ pip3 install virtualenv

Install virtual env wrapper (optional but will help setup your environment a bit faster)

$ pip3 install virtualenvwrapper
$ export WORKON_HOME=~/envs
$ mkdir -p $WORKON_HOME
$ source /usr/local/bin/virtualenvwrapper.sh

Note: you could place the last 3 lines from above to your bash/zsh profile

git clone https://github.com/whittlem/pycryptobot.git pycryptobot
cd pycryptobot
mkvirtualenv pycryptobot
pip install -r requirements.txt
python pycryptobot.py --market BTC-GBP --granularity 3600 --live 1 --verbose 0 --selllowerpcnt -2

from pycryptobot.

slygodhimself avatar slygodhimself commented on July 17, 2024

HI, THANKS!!

from pycryptobot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.